setPosWorld: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
mNo edit summary
 
Line 15: Line 15:


|p1= object: [[Object]]
|p1= object: [[Object]]
|p2= position: [[Array]] format [[Position#PositionASL|PositionASL]]
|p2= position: [[Position#PositionASL|PositionASL]]
|r1= [[Nothing]]
|r1= [[Nothing]]



Latest revision as of 08:47, 2 January 2026

Hover & click on the images for description

Description

Description:
Sets position of an object based on the model's centre position (see getPosWorld).
Groups:
Positions

Syntax

Syntax:
object setPosWorld position
Parameters:
object: Object
position: PositionASL
Return Value:
Nothing

Examples

Example 1:
_obj setPosWorld getPosWorld _obj;

Additional Information

See also:
getPosWorld setPos setPosATL setPosASL setPosASLW setMarkerPos setVehiclePosition

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note