setPosASL

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Armed Assault version 1.001.00Introduced with Operation Flashpoint version 1.991.99Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network
Hover & click on the images for descriptions

Description

Description:
Sets the object position above sea level. Given position must be in PositionASL format.

Syntax

Syntax:
object setPosASL pos
Parameters:
object: Object
pos: Array - format PositionASL
Return Value:
Nothing

Examples

Example 1:
player setPosASL [getPosASL player select 0, (getPosASL player select 1) + 10, getPosASL player select 2];
Example 2:
this setPosASL [position this select 0, position this select 1, 9]; // [ X, Y, Z]

Additional Information

See also:
ASLToATLATLToASLgetPosgetPosASLgetPosATLpositionsetPossetPosASL2setPosATLgetTerrainHeightASLsetPosWorldsetVehiclePosition
Groups:
Positions

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section