{"name":"swimInDepth","operator":null,"title":"swimInDepth","type":"command","url":"https://community.bistudio.com/wiki/swimInDepth","revid":369202,"updated":"2024-09-03T10:34:50Z","groups":["Unit Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets the target depth level for swimming soldier. Depth should be a negative number.","syntaxes":[{"syntax":"unit swimInDepth value","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"value","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"value: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"value","types":["Number"]}}],"examples":[{"text":"```sqf\nsoldier swimInDepth -20;\n```","code":["soldier swimInDepth -20;"]},{"text":"```sqf\nbob swimInDepth -10;\nbob doMove ASLToAGL getPosASL player;\n```","code":["bob swimInDepth -10;\nbob doMove ASLToAGL getPosASL player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["underwater"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Control","Introduced with Arma 3 version 0.50","Scripting Commands"]}