underwater: Difference between revisions
Jump to navigation
Jump to search
Fusselwurm (talk | contribs) m (remove my note) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 39: | Line 39: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on February 2, 2017 - 18:08 (UTC)</dd> | |||
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt> | |||
<dd class="note"> This is still quite buggy and not always reliable. Code in Example 2 is a good alternative. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 19:08, 2 February 2017
Description
- Description:
- Return whether object is fully underwater. From Arma 3 v1.66, this also works for units.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_isUnderwater = underwater player;
- Example 2:
_isUnderwater = eyePos player select 2 < 0;
Additional Information
- See also:
- isTouchingGroundisAbleToBreathe
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 February 2, 2017 - 18:08 (UTC)
- Killzone Kid
- This is still quite buggy and not always reliable. Code in Example 2 is a good alternative.