Skip to main content

GetMyPos

Description

Get the position of the NPC.

NameDescription
&Float:xA float to save the X coordinate, passed by reference.
&Float:yA float to save the Y coordinate, passed by reference.
&Float:zA float to save the Z coordinate, passed by reference.

Returns

This function does not return any specific values.

Example

new Float:x, Float:y, Float:z;
GetMyPos(x,y,z);
printf("I am currently at %f, %f, %f!",x,y,z);
  • SetMyPos: Set the NPC's current position.