SetPersonDirection
From Spheriki
Set the animation direction of a person.
Contents |
Usage
- name Defines the name of the person you want to change the direction of.
- direction The direction you want the person to look at.
Examples
SetPersonDirection("Pete", "west");
Sets the direction of person "Pete" to "west".
if (GetPersonDirection("Pete") == "east")
SetPersonDirection("Pete", "west");
Checks whether the person "Pete" is using the "east" direction. If he is, change his direction to "west".
Notes
- As spritesets can have custom directions like "idle", "laughing" etcetera, SetPersonDirection() can also switch to any of these directions.
- SetPersonDirection executes before QueuePersonCommand, even if its third parameter "immediate" is true.