Killzone_Kid
This command is quite buggy with objects other than mini-subs. Code in #Example 2 is a good alternative.
Results appear below as you type; use the arrow keys to move through them.
Returns whether the object is fully underwater.
Note
This command works well with Arma 3 mini-submarines, which was most likely the primary design goal.
underwater object
Parameters:
object: Object - mini-submarineReturns: Boolean - true if submerged
private _isUnderwater = underwater vehicle player;
private _isHeadUnderwater = eyePos player select 2 < 0;
isTouchingGround · isAbleToBreathe
This command is quite buggy with objects other than mini-subs. Code in #Example 2 is a good alternative.