setCollisionLight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.32


|1.32|= Game version
|gr1= Lights


|arg= local |=
|arg= local
|eff= global |=
____________________________________________________________________________________________


| Switches collision lights of a vehicle on/off. Note that the vehicle has to be [[local]]. |= Description
|eff= global
____________________________________________________________________________________________


| vehicle '''setCollisionLight''' set |= Syntax
|descr= Switches collision lights of a vehicle on/off.


|p1= vehicle: [[Object]] |PARAMETER1=
|s1= vehicle [[setCollisionLight]] set
|p2= set: [[Boolean]]  |PARAMETER1=


| [[Nothing]] |RETURNVALUE=
|p1= vehicle: [[Object]]


|p2= set: [[Boolean]]


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


____________________________________________________________________________________________
|seealso= [[isLightOn]] [[isCollisionLightOn]] [[setPilotLight]] [[isIRLaserOn]] [[engineOn]] [[isEngineOn]]
 
| [[isLightOn]], [[isCollisionLightOn]], [[setPilotLight]], [[isIRLaserOn]], [[engineOn]], [[isEngineOn]]|SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:24, 13 May 2022

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:
isLightOn isCollisionLightOn setPilotLight isIRLaserOn engineOn isEngineOn

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