enableIRLasers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2oa |Game name=
| arma2oa |Game name=
Line 11: Line 10:


|gr1= Weapons |GROUP1=
|gr1= Weapons |GROUP1=
____________________________________________________________________________________________


| Allows the AI to use IR lasers. |DESCRIPTION=
| Allows the AI to use IR lasers. |DESCRIPTION=
____________________________________________________________________________________________


| unitOrGroup [[enableIRLasers]] value |SYNTAX=
| unitOrGroup [[enableIRLasers]] value |SYNTAX=
Line 23: Line 20:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[group]] [[player]] [[enableIRLasers]] [[true]]</code> |EXAMPLE1=
|x1= <code>[[group]] [[player]] [[enableIRLasers]] [[true]]</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[isIRLaserOn]], [[enableGunLights]], [[isLightOn]], [[isCollisionLightOn]], [[setPilotLight]], [[setCollisionLight]] |SEEALSO=
| [[isIRLaserOn]], [[enableGunLights]], [[isLightOn]], [[isCollisionLightOn]], [[setPilotLight]], [[setCollisionLight]] |SEEALSO=

Revision as of 01:22, 17 January 2021

Hover & click on the images for description

Description

Description:
Allows the AI to use IR lasers.
Groups:
Weapons

Syntax

Syntax:
unitOrGroup enableIRLasers value
Parameters:
unitOrGroup: Object or Group - the unit or the group allowed to use IR lasers
value: Boolean
Return Value:
Nothing

Examples

Example 1:
group player enableIRLasers true

Additional Information

See also:
isIRLaserOnenableGunLightsisLightOnisCollisionLightOnsetPilotLightsetCollisionLight

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