setPilotLight

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.32
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.32

Description

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

Syntax:
vehicle setPilotLight set
Parameters:
vehicle: Object
set: Boolean
Return Value:
Nothing

Examples

Example 1:
car setPilotLight true;

Additional Information

Multiplayer:
-
See also:
isLightOnisCollisionLightOnsetCollisionLightisIRLaserOn

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on September 28, 2018 - 04:03 (UTC)
HazJ
This command will not work when using enableSimulation FALSE before this command is executed. However collision lights still do using setCollisionLight. // Workaround - Put in object init field this setPilotLight true; this setCollisionLight true; 0 = [this] spawn {sleep 0.001; (_this select 0) enableSimulation false;};