SetPosition
Category: Objects
/ Position
Since engine version: 4.6.5.0 CP
(extended in 4.9.6.0 CR)
Description
Moves an object to the specified position. This will set the exact pixel position and any internal sub-pixel offsets will be reset.
Syntax
int SetPosition
(int iX, int iY, object pObj, bool fCheckBounds);
Parameters
- iX:
New X position of the object
- iY:
New Y position of the object
- pObj:
[opt]
Object the position of which you want to set. Can be 0 in local calls.
- fCheckBounds:
[opt]
Only applies to objects using the BorderBound flag. Ensures that the position is always within the limits specified by the object.
Sven2, August 2002
Clonkonaut, April 2008