NPC:GetMyPos

From SA-MP Wiki

Jump to: navigation, search

NPC:GetMyPos


Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.


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.


This function does not return a specific value.


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 might be useful as well, as they're related to this function in one way or another.

Personal tools