isFlashlightOn: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 18: | Line 18: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <code>player isFlashlightOn (currentWeapon | |x1= <code>player isFlashlightOn (currentWeapon player);</code> | ||
|seealso= [[enableGunLights]] | |seealso= [[enableGunLights]] | ||
}} | }} |
Revision as of 11:13, 12 May 2022
Description
- Description:
- Returns true if there is a linked and enabled flashlight on a given weapon.
- Groups:
- Object ManipulationWeapons
Syntax
- Syntax:
- unit isFlashlightOn weapon
- Parameters:
- unit: Object
- weapon: String
- Return Value:
- Boolean
Examples
- Example 1:
player isFlashlightOn (currentWeapon player);
Additional Information
- See also:
- enableGunLights
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