isCollisionLightOn

From Bohemia Interactive Community
Revision as of 14:48, 12 March 2024 by Lou Montana (talk | contribs) (Text replacement - "Killzone Kid" to "Killzone_Kid")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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"];