Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Sets the object position.

Syntax

Syntax:object setPos pos
Parameters:
Return Value:Nothing

Examples

Examples:

player setPos [ getPos this select 0, getPos this select 1, (getPos this select 2) +10];

obj1 setpos [ getPos obj1 select 0, getPos obj1 select 1, -5];

player setPos (getPos someobject);

Additional Information

See also: setPosASL2, setPosASL, getPos, setVehiclePosition
Multiplayer:
Problems:

Notes







Posted on - October 14th, 2011
Richard Kissel
If moving objects from an arbitrary location so they are out of the way, instead of using setPos [0,0,0], use setPos [0,1,0].