isAbleToBreathe: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= 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]] | |s1= [[isAbleToBreathe]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| Line 19: | Line 20: | ||
}} | }} | ||
{{Note | |||
|user= Vabene1111 | |||
|timestamp= 20190506194300 | |||
|text= Might return false if player enters a vehicle while underwater. | |||
}} | |||
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.