setPosASLW: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version ____________________...")
 
mNo edit summary
 
(39 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|arg= global
____________________________________________________________________________________________


| Sets the object position above sea surface. The pos array uses the [[PositionASLW]] format.  |= Description
|eff= global
____________________________________________________________________________________________


| obj '''setPosASLW''' pos |= Syntax
|gr1= Positions


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


|p2= pos: [[Array]] - format [[PositionASLW]]  |= PARAMETER2
|s1= obj [[setPosASLW]] pos


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


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


|x1= <code>
|r1= [[Nothing]]
</code>|= EXAMPLE1


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


| |= SEEALSO
|seealso= [[getPosASLW]] [[setPosASL]] [[setPosATL]] [[setPos]] [[setPosWorld]]
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 21: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