NPC:SetMyPos
From SA-MP Wiki
NPC:SetMyPos
Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.
Set the position of the NPC
(Float:x, Float:y, Float:z)
| Float:x | The X coordinate of where you want the NPC to be. |
| Float:y | The Y coordinate of where you want the NPC to be. |
| Float:z | The Z coordinate of where you want the NPC to be. |
This function does not return a specific value.
Example:
SetMyPos(0.0,0.0,10.0);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- NPC:GetMyPos: Get the NPC's current position.
