enableGunLights: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> </dl>" to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 34: Line 34:
|x3= <code>_unit [[enableGunLights]] "ForceOff";</code>
|x3= <code>_unit [[enableGunLights]] "ForceOff";</code>


| [[isFlashlightOn]]
|seealso= [[isFlashlightOn]]
}}
}}

Revision as of 00:43, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
LightsWeapons

Syntax

Syntax:
Syntax needed
Parameters:
group: Group or Object - the group forced to use gun lights. If unit is supplied as argument, unit's group is used
mode: String - "Auto", "ForceOn", "ForceOff"
Return Value:
Return value needed

Examples

Example 1:
_group enableGunLights "ForceOn";
Example 2:
_unit enableGunLights "Auto";
Example 3:
_unit enableGunLights "ForceOff";

Additional Information

See also:
isFlashlightOn

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