isAbleToBreathe: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| If unit is diving and doesn't have a re-breather, it returns [[false]]. Diving means the unit's head is underwater. If unit is underwater and has a re-breather, the command returns [[true]]. |DESCRIPTION= | | If unit is diving and doesn't have a re-breather, it returns [[false]]. Diving means the unit's head is underwater. If unit is underwater and has a re-breather, the command returns [[true]]. |DESCRIPTION= | ||
| '''isAbleToBreathe''' unit |SYNTAX= | | '''isAbleToBreathe''' unit |SYNTAX= | ||
Line 21: | Line 18: | ||
|x1= <code>_canBreath = [[isAbleToBreathe]] [[player]];</code>|EXAMPLE1= | |x1= <code>_canBreath = [[isAbleToBreathe]] [[player]];</code>|EXAMPLE1= | ||
|[[underwater]] |SEEALSO= | |[[underwater]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:39, 17 January 2021
Description
- Description:
- If unit is diving and doesn't have a re-breather, it returns false. Diving means the unit's head is underwater. If unit is underwater and has a re-breather, the command returns true.
- Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
_canBreath = isAbleToBreathe player;
Additional Information
- See also:
- underwater
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
- Posted on May 6, 2019 - 19:43 (UTC)
- vabene1111
- Might return false if player enters a vehicle while underwater.