Arma 3 Scripting

Command in Lights

setPilotLight

Also available as Markdown and JSON, or read the original wiki page.

Description

Switches headlights of a vehicle on/off. Note that the vehicle has to be local, for global variant use Arma 3: Actions "LightOn"/"LightOff"

Syntax

vehicle setPilotLight set

Parameters:

Returns: Nothing

Examples

Example 1

car setPilotLight true;

See also

isLightOn · isCollisionLightOn · setCollisionLight · isIRLaserOn