getDiverState: Difference between revisions
Jump to navigation
Jump to search
m (updated version to 1.96) |
Lou Montana (talk | contribs) m (arma3dev → arma3) |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma3 |Game name= | ||
|1.96|Game version= | |1.96|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[getDiverState]] unit |SYNTAX= | ||
|p1 = unit: [[Object]] | |||
|p1= unit: [[Object]] | |||
| [[Boolean]] - [[true]] when diving [[goggles]] are visible |RETURNVALUE= | | [[Boolean]] - [[true]] when diving [[goggles]] are visible |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[private]] _gogglesOn = [[getDiverState]] [[player]];</code> |EXAMPLE1= | |||
| [[goggles]], [[removeGoggles]], [[addGoggles]] |SEEALSO= | | [[goggles]], [[removeGoggles]], [[addGoggles]] |SEEALSO= | ||
}} | }} | ||
Revision as of 21:10, 29 October 2019
Description
- Description:
- Returns true when object is in diver state i.e. when unit would put diving goggles on.
- Groups:
- Uncategorised
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