Difference between revisions of "setPosASL"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
(Add OFP 1.99)
Line 5: Line 5:
  
 
|1.00|Game version=
 
|1.00|Game version=
 +
 +
|game2= ofp |Game2 name=
 +
 +
|version2= 1.99 |Game2 version=
  
 
|arg= global |Multiplayer Arguments=
 
|arg= global |Multiplayer Arguments=
Line 11: Line 15:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Sets the object position above sea level. The pos array uses the [[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=
  
 
|p1= object: [[Object]] |PARAMETER1=
 
|p1= object: [[Object]] |PARAMETER1=
Line 23: Line 27:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>[[player]] [[setPosASL]] <nowiki>[</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>[</nowiki>[[position]] this [[select]] 0, [[position]] this [[select]] 1, 9];  //[ 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=
 
 
}}
 
}}
  
Line 41: Line 43:
  
 
<h3 style="display:none">Bottom Section</h3>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETPOSASL]]
+
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|SETPOSASL]]
+
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP Elite |SETPOSASL]]
+
[[Category:Scripting Commands OFP Elite |{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|SETPOSASL]]
+
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 01:00, 21 September 2019

-wrong parameter ("Arma") defined!-1.00Logo A0.png1.99
Hover & click on the images for description

Description

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

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