NPC:GetMyPos

From SA-MP Wiki

Jump to: navigation, search


NPC:GetMyPos was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Get the current location of the NPC


Parameters:
(&Float:x, &Float:y, &Float:z)
&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.


Return Values:

This function does not return any specific values.


Example Usage:

new Float:x, Float:y, Float:z;
GetMyPos(x,y,z);
printf("I am currently at %f, %f, %f!",x,y,z);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox