SetPersonDirection
From Spheriki
Set the animation direction of a person.
Contents |
[edit]
Usage
SetPersonDirection(name, direction);
- name Defines the name of the person you want to change the direction of.
- direction The direction you want the person to look at.
[edit]
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".
[edit]
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.
[edit]

