Arma 3
Jekyll May 21, 2021 @ 3:49pm
Trigger lights on upon entering area
I'm working on a mission and when the players enter a trigger i want a bunch of lights to turn on that are already placed. For this I am using the Portable Lights (Double) aka Land_PortableLight_double_f
< >
Showing 1-2 of 2 comments
Boingo May 23, 2021 @ 8:18am 
This is how I did it. I gave the double light
Variable Name - Light1
Init - Light1 switchLight "OFF";

in the trigger activation field

Light1 switchLight "ON";

Hope this helps. For multiple lamps, you can do an sqf or just repeat the command in the triggers activation.

Light1 switchLight "ON";Light2 switchLight "ON";Light3 switchLight "ON";
Dungeon Master Jun 20, 2023 @ 2:19pm 
Originally posted by Doctor Boingo:
Hope this helps. For multiple lamps, you can do an sqf or just repeat the command in the triggers activation.

Light1 switchLight "ON";Light2 switchLight "ON";Light3 switchLight "ON";

Could also run through an array using forEach

_lights = ["light1", "light2", "light3];
{ _x switchLight "ON" } forEach _lights;

from the top of my head, that should work.
< >
Showing 1-2 of 2 comments
Per page: 1530 50