underwater

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

Description:
Return whether object is fully underwater. From Arma 3 v1.66, this also works for units.

Syntax

Syntax:
underwater object
Parameters:
object: Object
Return Value:
Boolean

Examples

Example 1:
_isUnderwater = underwater player;
Example 2:
_isUnderwater = eyePos player select 2 < 0;

Additional Information

Multiplayer:
-
See also:
isTouchingGroundisAbleToBreathe

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on February 2, 2017 - 18:08 (UTC)
Killzone Kid
This is still quite buggy and not always reliable. Code in Example 2 is a good alternative.