getDiverState: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 8: | Line 8: | ||
|descr= Returns [[true]] when object is in diver state i.e. when unit would put diving [[goggles]] on. {{Feature|Informative| Diving [[goggles]] remove blurriness underwater, however when assigned, they do not appear on the face of the unit until the unit steps into the water. This command allows to detect the moment when the goggles are visible. If the unit doesn't have diving goggles assigned, this command would still return [[true]] at appropriate time if the unit steps into the water.}} | |descr= Returns [[true]] when object is in diver state i.e. when unit would put diving [[goggles]] on. {{Feature|Informative| Diving [[goggles]] remove blurriness underwater, however when assigned, they do not appear on the face of the unit until the unit steps into the water. This command allows to detect the moment when the goggles are visible. If the unit doesn't have diving goggles assigned, this command would still return [[true]] at appropriate time if the unit steps into the water.}} | ||
|s1= | |s1= [[getDiverState]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] |
Revision as of 22:13, 19 June 2021
Description
- Description:
- Returns true when object is in diver state i.e. when unit would put diving goggles on.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- getDiverState unit
- Parameters:
- unit: Object
- Return Value:
- Boolean - true when diving goggles are visible
Examples
- Example 1:
private _gogglesOn = getDiverState player;
Additional Information
- See also:
- gogglesremoveGogglesaddGoggles
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