enableGunLights: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added game version to note)
(separate page for A3)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma2oa |= Game name
| arma3 |= Game name


|1.51|= Game version
|1.00|= Game version


|arg= local |= Arguments in MP
|arg= local |= Arguments in MP
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Force the AI to use gun lights |= Description
| Sets AI group option how to use gun lights. The string argument can be:
* <tt>"Auto"</tt> - Depends on combat mode
* <tt>"ForceOn"</tt> - Always on
* <tt>"ForceOff"</tt> - Always off<br><br>
 
{{ Informative | For Arma 2 syntax see [[enableGunLights Arma 2]] }} |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| thing '''enableGunLights''' value |= Syntax
| group '''enableGunLights''' mode |= Syntax


|p1= thing: [[Object]] or [[Group]] - the unit or the group forced to use gun lights |= Parameter 1
|p1= group: [[Group]] or [[Object]] - the group forced to use gun lights. If unit is supplied as argument, unit's group is used  |= Parameter 1
|p2= value: [[Boolean]] or [[String]] - The string argument can be one of "AUTO", "forceOn", "forceOff" and was introduced in {{GVI|arma3|1.00}} |= Parameter 2
|p2= mode: [[String]] - <tt>"Auto"</tt>, <tt>"ForceOn"</tt>, <tt>"ForceOff"</tt> |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_group [[enableGunLights]] [[true]]; {{codecomment|// Arma 2 OA}}
|x1= <code>_group [[enableGunLights]] "forceOn";</code> |= Example 1
_group [[enableGunLights]] "forceOn"; {{codecomment|// Arma 3}}</code> |= Example 1


|x2= <code>_unit [[enableGunLights]] [[false]]; {{codecomment|// Arma 2 OA}}
|x2= <code>_unit [[enableGunLights]] "AUTO";</code> |= Example 2
_unit [[enableGunLights]] "AUTO"; {{codecomment|// Arma 3}}</code> |= Example 2


|x3= <code>_unit [[enableGunLights]] "forceOff"; {{codecomment|// Arma 3 only}}</code> |= Example 3
|x3= <code>_unit [[enableGunLights]] "forceOff";</code> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 37: Line 40:
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 27 July, 2011
<dt class="note">[[User:kju|kju]]
<dd class="note">{{GVI|arma2oa|1.51}}This command can be used to force lights on, but not to force lights off.


<!-- Note Section END -->
</dl>
</dl>


Line 49: Line 46:


[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 15:02, 1 March 2019

Hover & click on the images for description

Description

Description:
Sets AI group option how to use gun lights. The string argument can be:
  • "Auto" - Depends on combat mode
  • "ForceOn" - Always on
  • "ForceOff" - Always off

For Arma 2 syntax see enableGunLights Arma 2
Groups:
Uncategorised

Syntax

Syntax:
group enableGunLights mode
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:
Nothing

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

Notes

Bottom Section