SetPlayerObjectPos

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 10:32, 23 January 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 01:59, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 43: Line 43:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:SetPlayerObjectPos]]

Revision as of 01:59, 1 February 2014



Description:

Sets the position of a player-object to the specified coordinates.


Parameters:
(playerid, objectid, Float:X, Float:Y, Float:Z)
playeridThe ID of the player whose player-object to set the position of.
objectidThe ID of the player-object to set the position of. Returned by CreatePlayerObject.
Float:XThe X coordinate to put the object at.
Float:YThe Y coordinate to put the object at.
Float:ZThe Z coordinate to put the object at.


Return Values:

This function does not return any specific values.


new obj = CreatePlayerObject(...);
 
// Later on
 
SetPlayerObjectPos(playerid, obj, 2001.195679, 1547.113892, 14.283400);

Related Functions

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


In other languages