GetPersonDirection
From Spheriki
This function can get the direction a specific person is standing in. It uses the direction names as used in the spriteset.
Contents |
[edit]
Usage
string GetPersonDirection(person);
- person The person to check on, defined by its name.
- string is returned, containing the name of the direction the person is using at the moment of calling the function.
[edit]
Examples
var dir = GetPersonDirection("Pete");
Abort(dir + "\n");
Gets the direction the person "Pete" is using, and then closes down the game, showing what direction Pete was in.
[edit]
Notes
- As spritesets can have custom directions like "idle", "laughing", "whatever", GetPersonDirection() can also return one of those if the person is using such a direction.
[edit]

