From SA-MP Wiki
(Difference between revisions)
|Revision as of 10:37, 23 January 2014
Smithy (Talk | contribs)
← Previous diff
OstGot (Talk | contribs)
|Line 12:||Line 12:|
|SetMyPos(0.0, 0.0, 3.0);||SetMyPos(0.0, 0.0, 3.0);|
Set the position of the NPC.
|Float:x||The X coordinate to put the NPC at.|
|Float:y||The Y coordinate to put the NPC at.|
|Float:z||The Z coordinate to put the NPC at.|
This function does not return any specific values.
SetMyPos(0.0, 0.0, 3.0);
The following functions may be useful, as they are related to this function in one way or another.
- NPC:GetMyPos: Get the NPC's current position.
- NPC:GetDistanceFromMeToPoint: Get the distance between the NPC and a point.