Difference between revisions of "setPosASL"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Undo revision 84181 by Kenoxite (talk) please use talk page before admitting changes like this)
(locality)
Line 5: Line 5:
  
 
|1.00|= Game version
 
|1.00|= Game version
 +
 +
|arg= global |= Arguments in MP
 +
 +
|eff= global |= Effects in MP
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 19: Line 23:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>[[player]] [[setPosASL]] [ [[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10, [[getPosASL]] [[player]] [[select]] 2];</code> |= Example 1
+
|x1= <code>[[player]] [[setPosASL]] <nowiki>[</nowiki>[[getPosASL]] [[player]] [[select]] 0, ([[getPosASL]] [[player]] [[select]] 1) + 10, [[getPosASL]] [[player]] [[select]] 2];</code> |= Example 1
  
|x2= <code>this [[setPosASL]] [ [[position]] this [[select]] 0, [[position]] this [[select]] 1, 9];  //[ X, Y, Z]</code> |= Example 2
+
|x2= <code>this [[setPosASL]] <nowiki>[</nowiki>[[position]] this [[select]] 0, [[position]] this [[select]] 1, 9];  //[ X, Y, Z]</code> |= Example 2
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________

Revision as of 01:03, 13 November 2014

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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:
ASLToATLATLToASLgetPosgetPosASLgetPosATLpositionsetPossetPosASL2setPosATLgetTerrainHeightASL

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