enableGunLights: Difference between revisions
Jump to navigation
Jump to search
m (added game version to note) |
Killzone Kid (talk | contribs) (separate page for A3) |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma3 |= Game name | ||
|1. | |1.00|= Game version | ||
|arg= local |= Arguments in MP | |arg= local |= Arguments in MP | ||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | group '''enableGunLights''' mode |= Syntax | ||
|p1= | |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= | |p2= mode: [[String]] - <tt>"Auto"</tt>, <tt>"ForceOn"</tt>, <tt>"ForceOff"</tt> |= Parameter 2 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>_group [[enableGunLights]] "forceOn";</code> |= Example 1 | ||
_group [[enableGunLights]] "forceOn"; | |||
|x2= <code> | |x2= <code>_unit [[enableGunLights]] "AUTO";</code> |= Example 2 | ||
_unit [[enableGunLights]] "AUTO"; | |||
|x3= <code>_unit [[enableGunLights]] "forceOff"; | |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"> | ||
</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 Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 14:02, 1 March 2019
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
- 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