swimInDepth: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Unit Control |GROUP1=
|gr1= Unit Control |GROUP1=
____________________________________________________________________________________________


| Sets the target depth level for swimming soldier. Depth should be a negative number. |DESCRIPTION=
| Sets the target depth level for swimming soldier. Depth should be a negative number. |DESCRIPTION=
____________________________________________________________________________________________


| unit '''swimInDepth''' value |SYNTAX=
| unit '''swimInDepth''' value |SYNTAX=
Line 25: Line 22:
bob [[doMove]] [[ASLToAGL]] [[getPosASL]] [[player]];</code>|EXAMPLE2=
bob [[doMove]] [[ASLToAGL]] [[getPosASL]] [[player]];</code>|EXAMPLE2=


____________________________________________________________________________________________


| [[underwater]] |SEEALSO=  
| [[underwater]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 04:50, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets the target depth level for swimming soldier. Depth should be a negative number.
Groups:
Unit Control

Syntax

Syntax:
unit swimInDepth value
Parameters:
unit: Object
value: Number
Return Value:
Nothing

Examples

Example 1:
soldier swimInDepth -20;
Example 2:
bob swimInDepth -10; bob doMove ASLToAGL getPosASL player;

Additional Information

See also:
underwater

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

Posted on June 13, 2017 - 01:18 (UTC)
DrSova
Doesn't work with animals.