isAbleToBreathe: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (clarification) |
Lou Montana (talk | contribs) m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "") |
||
(22 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
| | |gr1= Object Manipulation | ||
| '' | | 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]]. | ||
| | | '''isAbleToBreathe''' unit | ||
| [[ | |p1= unit: [[Object]] | ||
| [[Boolean]] | |||
|x1= <code> | |x1= <code>_canBreath = [[isAbleToBreathe]] [[player]];</code> | ||
</code> | |||
|seealso= [[underwater]] | |||
|[[underwater]] | |||
}} | }} | ||
< | <dl class="command_description"> | ||
< | <dt></dt> | ||
< | <dd class="notedate">Posted on May 6, 2019 - 19:43 (UTC)</dd> | ||
<dt class="note">[[User:vabene1111|vabene1111]]</dt> | |||
< | <dd class="note"> | ||
Might return false if player enters a vehicle while underwater. | |||
</dd> | |||
</dl> | </dl> | ||
Revision as of 01:49, 6 April 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unit: Object
- Return Value:
- Return value needed
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
- Posted on May 6, 2019 - 19:43 (UTC)
- vabene1111
- Might return false if player enters a vehicle while underwater.