setPosASL: Difference between revisions
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}")  | 
				 (example moved, see also added)  | 
				||
| Line 21: | Line 21: | ||
|x1= <code>player setPosASL [ [[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10,  | |x1= <code>player setPosASL [ [[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10,  | ||
[[getPosASL]] [[player]] [[select]] 2]</code> |= Example 1  | [[getPosASL]] [[player]] [[select]] 2]</code> |= Example 1  | ||
|x2= <code>this setPosASL [position this select 0, position this select 1, 9];</code>   | |||
"this" can be any name. "9" is the height above sea level|= Example 2  | |||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
| [[setPosASL2]] |= See also  | | [[ASLToATL]], [[ATLToASL]], [[getPos]], [[getPosASL]], [[getPosATL]], [[position]], [[setPos]], [[setPosASL2]], [[setPosATL]] |= See also  | ||
}}  | }}  | ||
<h3 style="display:none">Notes</h3>  | <h3 style="display:none">Notes</h3>  | ||
Revision as of 17:23, 23 November 2012
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];"this" can be any name. "9" is the height above sea level
Additional Information
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