GetPersonXFloat

From Spheriki

Jump to: navigation, search

Get the map X coordinate of a person to floating point precision.


Contents

Usage

number GetPersonXFloat(person_name);
  • person_name string. The name of the person to get the map X coordinate of.
  • number is returned, containing the X of the person.


Examples

This can be used in exactly the same way as GetPersonX():

var x = GetPersonXFloat("Bob");


Notes

  • "Floating point" is just a fancy term for numbers with a decimal point in them, like 8.96.
  • The behaviour of this function outside of the map engine is undefined. So use it while the map engine is running.


See also

Personal tools