Arma 3 Scripting

Command in Unit Control

swimInDepth

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets the target depth level for swimming soldier. Depth should be a negative number.

Syntax

unit swimInDepth value

Parameters:

Returns: Nothing

Examples

Example 1

soldier swimInDepth -20;

Example 2

bob swimInDepth -10;
bob doMove ASLToAGL getPosASL player;

See also

underwater