setPosASL: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) (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. | | Sets the object position above sea level. Given position must be in [[PositionASL]] format. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| object | | object [[setPosASL]] pos |SYNTAX= | ||
|p1= object: [[Object]] |PARAMETER1= | |p1= object: [[Object]] |PARAMETER1= | ||
Line 23: | Line 27: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[player]] [[setPosASL]] <nowiki | |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= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[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| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.99| | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP Elite | | [[Category:Scripting Commands OFP Elite |{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA| | [[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 00:00, 21 September 2019
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters