isCollisionLightOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(34 intermediate revisions by 2 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


|gr1 = Lights |GROUP1=
|arg= global


|arg= global|arguments=
|descr= Returns [[true]] if vehicle collision lights are on otherwise [[false]].
____________________________________________________________________________________________


| Returns [[true]] if vehicle collision lights are on otherwise [[false]].  |DESCRIPTION=
|s1= [[isCollisionLightOn]] vehicle
____________________________________________________________________________________________


| '''isCollisionLightOn''' vehicle |SYNTAX=
|p1= vehicle: [[Object]]
 
|p1= vehicle: [[Object]] |PARAMETER1=
 
| [[Boolean]] |RETURNVALUE=


|r1= [[Boolean]]


   
   
|x1= <code>_collisionLightOn = [[isCollisionLightOn]] heli;</code>|EXAMPLE1=
|x1= <sqf>_collisionLightOn = isCollisionLightOn heli;</sqf>


____________________________________________________________________________________________
|seealso= [[isEngineOn]] [[isLightOn]] [[setPilotLight]] [[setCollisionLight]] [[isIRLaserOn]]
 
| [[isEngineOn]], [[isLightOn]], [[setPilotLight]], [[setCollisionLight]], [[isIRLaserOn]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<dl class='command_description'>
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
<dt></dt>
{{GameCategory|arma3|New Scripting Commands}}
<dd class="notedate">Posted on 2015-04-06 - 08:25 (UTC)</dd>
{{GameCategory|arma3|Scripting Commands}}
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 6, 2015 - 08:25 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
<dd class="note">
Bind Collision light action to UserAction 2
Bind Collision light action to UserAction 2
<code>this [[addAction]] ["", {
<sqf>
_this [[select]] 1 [[action]] [
this addAction ["", {
["CollisionLightOn", "CollisionLightOff"] [[select]] [[isCollisionLightOn]] (_this [[select]] 0),  
_this select 1 action [
_this [[select]] 0
["CollisionLightOn", "CollisionLightOff"] select isCollisionLightOn (_this select 0),  
_this select 0
];
];
}, "", -10, [[false]], [[true]], "User2", "_this <nowiki>==</nowiki> [[driver]] _target"];</code>
}, "", -10, false, true, "User2", "_this == driver _target"];
</sqf>
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 13:48, 12 March 2024

Hover & click on the images for description

Description

Description:
Returns true if vehicle collision lights are on otherwise false.
Groups:
Lights

Syntax

Syntax:
isCollisionLightOn vehicle
Parameters:
vehicle: Object
Return Value:
Boolean

Examples

Example 1:
_collisionLightOn = isCollisionLightOn heli;

Additional Information

See also:
isEngineOn isLightOn setPilotLight setCollisionLight isIRLaserOn

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
Posted on 2015-04-06 - 08:25 (UTC)
Killzone_Kid
Bind Collision light action to UserAction 2
this addAction ["", { _this select 1 action [ ["CollisionLightOn", "CollisionLightOff"] select isCollisionLightOn (_this select 0), _this select 0 ]; }, "", -10, false, true, "User2", "_this == driver _target"];