GetPersonX
From Spheriki
Get the map X coordinate of a person, based on the middle of their spriteset's base rectangle.
Contents |
[edit]
Usage
number GetPersonX(person_name);
- person_name string. The name of the person.
- number is returned, representing the X coordinate of the person.
[edit]
Examples
To store the map X coordinate of a person named "Bob":
var x = GetPersonX("Bob");
[edit]
Notes
- This function only works as expected if done while the map engine is running.
- For more exact results, use GetPersonXFloat().
[edit]

