isAbleToBreathe: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(clarification)
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
| arma3


|0.50|= Game version
|0.50
____________________________________________________________________________________________


| 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
|gr1= Object Manipulation
____________________________________________________________________________________________


| '''isAbleToBreathe''' unit |= Syntax
| 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]].


|p1= unit: [[Object]]  |= PARAMETER1
| '''isAbleToBreathe''' unit


| [[Boolean]] |= RETURNVALUE
|p1= unit: [[Object]]


| [[Boolean]]


|x1= <code>
|x1= <code>_canBreath = [[isAbleToBreathe]] [[player]];</code>
</code>|= EXAMPLE1


____________________________________________________________________________________________
|seealso= [[underwater]]
 
|[[underwater]] |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<dl class='command_description'>
<dt></dt>
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on May 6, 2019 - 19:43 (UTC)</dd>
 
<dt class="note">[[User:vabene1111|vabene1111]]</dt>
<!-- Note Section END -->
<dd class="note">
Might return false if player enters a vehicle while underwater.
</dd>
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 01:49, 6 April 2021

Hover & click on the images for description

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.