isLightOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns [[true]] if vehicle headlights are on otherwise [[false]].  |= Description
| Returns [[true]] if vehicle headlights are on otherwise [[false]].  |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''isLightOn''' vehicle |= Syntax
| '''isLightOn''' vehicle |SYNTAX=


|p1= vehicle: [[Object]]  |PARAMETER1=  
|p1= vehicle: [[Object]]  |PARAMETER1=  

Revision as of 15:41, 7 April 2019

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