setCollisionLight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.32|Game version=
|1.32


|gr1 = Lights |GROUP1=
|gr1 = Lights


|arg= local |MParg=
|arg= local


|eff= global |MPeff=
|eff= global


| Switches collision lights of a vehicle on/off. |DESCRIPTION=
| Switches collision lights of a vehicle on/off.


| vehicle [[setCollisionLight]] set |SYNTAX=
| vehicle [[setCollisionLight]] set


|p1= vehicle: [[Object]] |PARAMETER1=
|p1= vehicle: [[Object]]


|p2= set: [[Boolean]] |PARAMETER2=
|p2= set: [[Boolean]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>heli [[setCollisionLight]] [[true]];</code> |EXAMPLE1=
|x1= <code>heli [[setCollisionLight]] [[true]];</code>


|  [[isLightOn]], [[isCollisionLightOn]], [[setPilotLight]], [[isIRLaserOn]], [[engineOn]], [[isEngineOn]]|SEEALSO=
|  [[isLightOn]], [[isCollisionLightOn]], [[setPilotLight]], [[isIRLaserOn]], [[engineOn]], [[isEngineOn]]


| |MPBEHAVIOUR=
|
}}
}}

Revision as of 11:10, 18 January 2021

Hover & click on the images for description

Description

Description:
Switches collision lights of a vehicle on/off.
Groups:
Lights

Syntax

Syntax:
vehicle setCollisionLight set
Parameters:
vehicle: Object
set: Boolean
Return Value:
Nothing

Examples

Example 1:
heli setCollisionLight true;

Additional Information

See also:
isLightOnisCollisionLightOnsetPilotLightisIRLaserOnengineOnisEngineOn

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