setPosASLW: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {3,}\|" to " |")
mNo edit summary
 
(21 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 0.50
|0.50|Game version=]


|arg= global
|arg= global
Line 11: Line 10:
|gr1= Positions
|gr1= Positions


| Sets the object position above sea surface. The pos array uses the [[PositionASLW]] format.
|descr= Sets the object position above sea surface. The pos array uses the [[Position#PositionASLW|PositionASLW]] format.


| obj '''setPosASLW''' pos
|s1= obj [[setPosASLW]] pos


|p1= obj: [[Object]]
|p1= obj: [[Object]]


|p2= pos: [[Array]] - format [[PositionASLW]]
|p2= pos: [[Array]] format [[Position#PositionASLW|PositionASLW]]
 
| [[Nothing]]


|x1= <code>_diver [[setPosASLW]] [([[position]] _diver) [[select]] 0, ([[position]] _diver) [[select]] 1, -10];
|r1= [[Nothing]]
</code>


| [[getPosASLW]], [[setPosASL]], [[setPosATL]], [[setPos]], [[setPosWorld]]
|x1= <sqf>_diver setPosASLW [(position _diver) select 0, (position _diver) select 1, -10];</sqf>


|
|seealso= [[getPosASLW]] [[setPosASL]] [[setPosATL]] [[setPos]] [[setPosWorld]]
}}
}}
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:34, 28 September 2023

Hover & click on the images for description

Description

Description:
Sets the object position above sea surface. The pos array uses the PositionASLW format.
Groups:
Positions

Syntax

Syntax:
obj setPosASLW pos
Parameters:
obj: Object
pos: Array format PositionASLW
Return Value:
Nothing

Examples

Example 1:
_diver setPosASLW [(position _diver) select 0, (position _diver) select 1, -10];

Additional Information

See also:
getPosASLW setPosASL setPosATL setPos setPosWorld

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