setPosASL: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
m (template:command argument fix) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets the object position above sea level. The pos array uses the [[PositionASL]] format. |= | | Sets the object position above sea level. The pos array uses the [[PositionASL]] format. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| object '''setPosASL''' pos |= | | object '''setPosASL''' pos |SYNTAX= | ||
|p1= object: [[Object]] |= | |p1= object: [[Object]] |PARAMETER1= | ||
|p2= pos: [[Array]] - format [[PositionASL]] |= | |p2= pos: [[Array]] - format [[PositionASL]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[player]] [[setPosASL]] <nowiki>[</nowiki>[[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10, [[getPosASL]] [[player]] [[select]] 2];</code> |= | |x1= <code>[[player]] [[setPosASL]] <nowiki>[</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> |= | |x2= <code>this [[setPosASL]] <nowiki>[</nowiki>[[position]] this [[select]] 0, [[position]] this [[select]] 1, 9]; //[ X, Y, Z]</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ASLToATL]], [[ATLToASL]], [[getPos]], [[getPosASL]], [[getPosATL]], [[position]], [[setPos]], [[setPosASL2]], [[setPosATL]], [[getTerrainHeightASL]], [[setPosWorld]], [[setVehiclePosition]] |= | | [[ASLToATL]], [[ATLToASL]], [[getPos]], [[getPosASL]], [[getPosATL]], [[position]], [[setPos]], [[setPosASL2]], [[setPosATL]], [[getTerrainHeightASL]], [[setPosWorld]], [[setVehiclePosition]] |SEEALSO= | ||
}} | }} |
Revision as of 14:48, 7 April 2019
Description
- Description:
- Sets the object position above sea level. The pos array uses the 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
- 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