GetPersonSpeedX

From Spheriki

Jump to: navigation, search

Gets the person's current horizontal speed value.


Contents

Usage

Number GetPersonSpeedX(person);
  • person The person to check the value on.


Examples

SetPersonSpeedXY("Pete", 2, 1);

//...

Abort(GetPersonSpeedX("Pete"));

Will return 2, because the X speed was set to 2.

Abort(GetPersonSpeedX("Someone"));

Will return 1, because that is every person's default x and y speed.


Notes

  • A person's default x and y speed value is 1.


See also

Personal tools