isCollisionLightOn: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") | Lou Montana (talk | contribs)  m (Some wiki formatting) | ||
| Line 29: | Line 29: | ||
| <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, false, true, "User2", "_this  | }, "", -10, false, true, "User2", "_this == driver _target"]; | ||
| </sqf> | |||
| </dd> | </dd> | ||
| </dl> | </dl> | ||
Revision as of 13:18, 13 May 2022
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 April 6, 2015 - 08:25 (UTC)
- Killzone Kid
- Bind Collision light action to UserAction 2
 
	