Arma 3 Scripting

isAbleToBreathe

  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

If unit is diving and doesn't have a rebreather, it returns false. Diving means the unit's head is underwater. If unit is underwater and has a rebreather, the command returns true.

Syntax

isAbleToBreathe unit

Parameters:

Returns: Boolean

Examples

Example 1

_canBreath = isAbleToBreathe player;

See also

underwater

Community notes

Vabene1111

Might return false if player enters a vehicle while underwater.