isLightOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.31|= Game version |arg= global|= _...")
 
mNo edit summary
Line 20: Line 20:


|x1= <code>_lightsOn = [[isLightOn]] [[vehicle]] [[player]];</code>|= EXAMPLE1  
|x1= <code>_lightsOn = [[isLightOn]] [[vehicle]] [[player]];</code>|= EXAMPLE1  
|x1= <code>_pilotLightOn = [[isLightOn]] heli;</code>|= EXAMPLE1  
|x2= <code>_pilotLightOn = [[isLightOn]] heli;</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 15:51, 26 September 2014

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_lightsOn = isLightOn vehicle player;
Example 2:
_pilotLightOn = isLightOn heli;

Additional Information

See also:
setPilotLightisCollisionLightOnsetCollisionLightisIRLaserOn

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