isCollisionLightOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
(format)
Line 48: Line 48:
<dd class="note">
<dd class="note">
Bind Collision light action to UserAction 2
Bind Collision light action to UserAction 2
<code>this addAction ["", {
<code>this [[addAction]] ["", {
_this select 1 action [
_this [[select]] 1 [[action]] [
["CollisionLightOn", "CollisionLightOff"] select isCollisionLightOn (_this select 0),  
["CollisionLightOn", "CollisionLightOff"] [[select]] [[isCollisionLightOn]] (_this [[select]] 0),  
_this select 0
_this [[select]] 0
];
];
}, "", -10, false, true, "User2", "_this <nowiki>==</nowiki> driver _target"];</code>
}, "", -10, [[false]], [[true]], "User2", "_this <nowiki>==</nowiki> [[driver]] _target"];</code>
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 12:32, 11 September 2016

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_collisionLightOn = isLightOn heli;

Additional Information

See also:
isEngineOnisLightOnsetPilotLightsetCollisionLightisIRLaserOn

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

Posted on April 6, 2015 - 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"];