underwater
Jump to navigation
Jump to search
Description
- Description:
- Return whether object is fully underwater. NOTE: up to some time before 1.66, this only worked on objects, not units. For units it returned "isSwimming" and not "underwater"
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_isSwimming = 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 September 21, 2014 - 20:49 (UTC)
- Killzone Kid
-
This command name is MISLEADING. It returns true when player is in swimming position and false otherwise. Player can be standing fully underwater and this command would return false or swimming with head above water and this command would return true.
- Posted on December 17, 2016 - 11:08 (UTC)
- Fusselwurm
-
Seems to be fixed for players now (as of 1.66) : returns
true
if submerged,false
is swimming on surface