SetObjectPos
Description:
Function SetObjectPos change the position of an object.
Parameters:
(objectid, Float:X, Float:Y, Float:Z)
int | objectid | The ID of the object to set the position of. Returned by CreateObject. |
float | X | The X coordinate to position the object at. |
float | Y | The Y coordinate to position the object at. |
float | Z | The Z coordinate to position the object at. |
Return Values:
This function always returns 1, even if the object specified does not exist.
Examples:
SetObjectPos(objectid, 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.
- CreateObject: Create an object.
- DestroyObject: Destroy an object.
- IsValidObject: Checks if a certain object is vaild.
- MoveObject: Move an object.
- StopObject: Stop an object from moving.
- SetObjectRot: Set the rotation of an object.
- GetObjectPos: Locate an object.
- GetObjectRot: Check the rotation of an object.
- AttachObjectToPlayer: Attach an object to a player.