isCollisionLightOn: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - "Killzone Kid" to "Killzone_Kid") |
||
(13 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|descr= Returns [[true]] if vehicle collision lights are on otherwise [[false]]. | |descr= Returns [[true]] if vehicle collision lights are on otherwise [[false]]. | ||
|s1= | |s1= [[isCollisionLightOn]] vehicle | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
Line 17: | Line 17: | ||
|x1= < | |x1= <sqf>_collisionLightOn = isCollisionLightOn heli;</sqf> | ||
|seealso= [[isEngineOn]] | |seealso= [[isEngineOn]] [[isLightOn]] [[setPilotLight]] [[setCollisionLight]] [[isIRLaserOn]] | ||
}} | }} | ||
Line 25: | Line 25: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2015-04-06 - 08:25 (UTC)</dd> | ||
<dt class="note">[[User: | <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 | ||
< | <sqf> | ||
_this | this addAction ["", { | ||
["CollisionLightOn", "CollisionLightOff"] | _this select 1 action [ | ||
_this | ["CollisionLightOn", "CollisionLightOff"] select isCollisionLightOn (_this select 0), | ||
_this select 0 | |||
]; | ]; | ||
}, "", -10, | }, "", -10, false, true, "User2", "_this == driver _target"]; | ||
</sqf> | |||
</dd> | </dd> | ||
</dl> | </dl> |
Latest revision as of 13:48, 12 March 2024
Description
Syntax
- Syntax:
- isCollisionLightOn vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Boolean
Examples
- Example 1:
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
- Posted on 2015-04-06 - 08:25 (UTC)
- Killzone_Kid
- Bind Collision light action to UserAction 2