setPosASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 15: Line 14:


|gr1= Positions |GROUP1=
|gr1= Positions |GROUP1=
____________________________________________________________________________________________


| Sets the object position above sea level. Given position must be in [[PositionASL]] format. |DESCRIPTION=
| Sets the object position above sea level. Given position must be in [[PositionASL]] format. |DESCRIPTION=
____________________________________________________________________________________________


| object [[setPosASL]] pos |SYNTAX=
| object [[setPosASL]] pos |SYNTAX=
Line 27: Line 24:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[player]] [[setPosASL]] [<nowiki/>[[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10, [[getPosASL]] [[player]] [[select]] 2];</code> |EXAMPLE1=
|x1= <code>[[player]] [[setPosASL]] [<nowiki/>[[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10, [[getPosASL]] [[player]] [[select]] 2];</code> |EXAMPLE1=


|x2= <code>[[this]] [[setPosASL]] [<nowiki/>[[position]] [[this]] [[select]] 0, [[position]] [[this]] [[select]] 1, 9];  {{cc|[ X, Y, Z]}}</code> |EXAMPLE2=
|x2= <code>[[this]] [[setPosASL]] [<nowiki/>[[position]] [[this]] [[select]] 0, [[position]] [[this]] [[select]] 1, 9];  {{cc|[ X, Y, Z]}}</code> |EXAMPLE2=
____________________________________________________________________________________________


| [[ASLToATL]], [[ATLToASL]], [[getPos]], [[getPosASL]], [[getPosATL]], [[position]], [[setPos]], [[setPosASL2]], [[setPosATL]], [[getTerrainHeightASL]], [[setPosWorld]], [[setVehiclePosition]] |SEEALSO=
| [[ASLToATL]], [[ATLToASL]], [[getPos]], [[getPosASL]], [[getPosATL]], [[position]], [[setPos]], [[setPosASL2]], [[setPosATL]], [[getTerrainHeightASL]], [[setPosWorld]], [[setVehiclePosition]] |SEEALSO=

Revision as of 03:44, 17 January 2021

Hover & click on the images for description

Description

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

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

Notes

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

Notes

Bottom Section