SetAsPlayer
(Formerly known as SetPlayerCharacter, which is now obsolete)
Character.SetAsPlayer()
Changes the character which the player controls to the specified character. This function will also cause the room to change to the room which the chosen character is currently in (though as with ChangeRoom, the change won't happen until the end of the script).
Additionally, calling this command will cause the "player" variable to be updated to point to the specified character.
Example:
cMan.SetAsPlayer();
will change the character that the player controls to character MAN and also change to the room that MAN is in, if he is not in the current room.
See Also: Character.ID, Character.ChangeRoom