{"name":"setPilotLight","title":"setPilotLight","type":"command","url":"https://community.bistudio.com/wiki/setPilotLight","revid":379382,"updated":"2026-10-30T23:59:04Z","groups":["Lights"],"status":"ok","games":{"arma3":"1.32"},"since":"arma3 1.32","arma3_since":"1.32","locality":{"argument":"local","effect":"global"},"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\"","syntaxes":[{"syntax":"vehicle setPilotLight set","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"set","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"set"}}],"examples":[{"code":["car setPilotLight true;"]}],"see_also":["isLightOn","isCollisionLightOn","setCollisionLight","isIRLaserOn"],"notes":[{"user":"HazJ","date":"2018-09-28T04:03:00Z","text":"This command will not work when using enableSimulation FALSE before this command is executed. However collision lights still do using setCollisionLight.\n\n```sqf\n// Workaround - Put in object init field\nthis setPilotLight true;\nthis setCollisionLight true;\n[this] spawn {\n    sleep 0.001;\n    (_this select 0) enableSimulation false;\n};\n```"}]}