isAbleToBreathe: Difference between revisions
Killzone Kid (talk | contribs) (clarification) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| (32 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 0.50 | |||
| | |gr1= Object Manipulation | ||
| If unit is diving and doesn't have a | |descr= 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]]. | |||
| | |s1= [[isAbleToBreathe]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <sqf>_canBreath = isAbleToBreathe player;</sqf> | |||
| | |seealso= [[underwater]] | ||
}} | |||
| | {{Note | ||
|user= Vabene1111 | |||
|timestamp= 20190506194300 | |||
|text= Might return false if player enters a vehicle while underwater. | |||
}} | }} | ||
Latest revision as of 22:53, 2 February 2026
Description
- 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.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- isAbleToBreathe unit
- Parameters:
- unit: Object
- Return Value:
- Boolean
Examples
- Example 1:
Additional Information
- See also:
- underwater
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
- Posted on May 06, 2019 - 19:43 (UTC)
- Might return false if player enters a vehicle while underwater.