Does the issue occur in the editor or during gameplay?
please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
Free movement, tried both first person and top down.
Briefly describe the issue you're experiencing:
Using the 'change player' function to an entity on the map deletes the current player entity, making it impossible to switch back
Are there any errors in the in-game debug console or external console window?
Error in change_player (F1): invalid character
Provide the steps necessary to reproduce the issue:
- Use free movement
- Bind a key (lets say F2) for a script using the 'change player' function and apply it to an entity on a map using the entity ID.
- Bind another key (F1) for a script using the change player function and either change player to party.member["player"] or change player to a second entity on the map.
- launch the game, press F2 to switch character, press F1 to switch again.
- now you can't switch back to F2 and the character is deleted.
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):
/