GetPersonX

From Spheriki

Jump to: navigation, search

Get the map X coordinate of a person, based on the middle of their spriteset's base rectangle.


Contents

Usage

number GetPersonX(person_name);
  • person_name string. The name of the person.
  • number is returned, representing the X coordinate of the person.


Examples

To store the map X coordinate of a person named "Bob":

var x = GetPersonX("Bob");


Notes

  • This function only works as expected if done while the map engine is running.


See also

Personal tools