{"name":"swimInDepth","title":"swimInDepth","type":"command","url":"https://community.bistudio.com/wiki/swimInDepth","revid":379395,"updated":"2026-10-31T00:00:48Z","groups":["Unit Control"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Sets the target depth level for swimming soldier. Depth should be a negative number.","syntaxes":[{"syntax":"unit swimInDepth value","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"value","type":"Number","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"value"}}],"examples":[{"code":["soldier swimInDepth -20;"]},{"code":["bob swimInDepth -10;\nbob doMove ASLToAGL getPosASL player;"]}],"see_also":["underwater"],"notes":[{"user":"DrSova","date":"2017-06-13T01:18:00Z","text":"Doesn't work with animals."}]}