isCollisionLightOn: Difference between revisions
Jump to navigation
Jump to search
Skaronator (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 41: | Line 41: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[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"> | |||
Bind Collision light action to UserAction 2 | |||
<code>this addAction ["", { | |||
_this select 1 action [ | |||
["CollisionLightOn", "CollisionLightOff"] select isCollisionLightOn (_this select 0), | |||
_this select 0 | |||
]; | |||
}, "", -10, false, true, "User2", "_this <nowiki>==</nowiki> driver _target"];</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 09:25, 6 April 2015
Description
- Description:
- Returns true if vehicle collision lights are on otherwise false.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_collisionLightOn = isLightOn heli;
Additional Information
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"];