Arma 3
98 ratings
Light Switch Script
   
Award
Favorite
Favorited
Unfavorite
Data Type: Scenario
Scenario Gameplay: Multiplayer
Scenario Map: Altis
File Size
Posted
Updated
327.971 KB
Oct 11, 2019 @ 2:51pm
Oct 12, 2019 @ 8:17am
4 Change Notes ( view )

Subscribe to download
Light Switch Script

Description

What is this?
This is a script that allow you to turn off all lights in a area, useful for some stealth like missions.

This script make some use of the switchLight command or more exactly [this, "OFF"] remoteExec ["switchLight",0,true]; that is its Multiplayer dedicated server compatible form, you can use many combinations as you want, this is just a test mission to show what can be done.

How to use:
how to set up like this mission:
Get this code here: https://pastebin.com/5qXsajBC
Paste inside the init of the Land_TransferSwitch_01_F (Transfer Switch)
This code is ready for multiplayer and dedicated server
This is just a test mission to showcase the script, no extra download needed

Disclaimer
Everyone is allowed to reverse engineer and copy this mission scripts though I am not available to explain how it works sometimes I leave comments on the scripts to remember what I did, but if you use any content from here please give the credits, I hope your works come out great too!


Donate/Support
If you would like support my work in the steam workshop here is my Paypal:

[www.paypal.com]
37 Comments
Roque_THE_GAMER  [author] May 12, 2022 @ 3:44pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
AZOV-MAN May 12, 2022 @ 3:20pm 
@Roque_THE_GAMER
Is there some way to make a switch turned off on start of mission, for example, if your task to restore light in certain area ?
Echo Congo May 10, 2022 @ 7:12pm 
@Roque_THE_GAMER A little late to this now, but I found out why the switch was blowing up on me. The mod known as "Exploding Objects" makes the Transfer Switch an explode-able item. I guess I can't use that mod with this script lol.
Corporal Cal Jan 2, 2022 @ 1:08am 
That's good to know. Thanks
Roque_THE_GAMER  [author] Jan 1, 2022 @ 5:08pm 
All assets that are not maps, vehicles and gear/weapons can be used in any scenarios, even DLCs weapons/gear can be used by AI
Corporal Cal Jan 1, 2022 @ 5:07pm 
Ah brilliant. Out of curiosity, is that the case for all DLC assets?
Roque_THE_GAMER  [author] Jan 1, 2022 @ 8:44am 
The Land_TransferSwitch_01_F (Transfer Switch) is in the vanila game, its a asset from the contact DLC but you can use it in any mission without having the DLC.
Corporal Cal Jan 1, 2022 @ 5:46am 
I just figured out that the script does what I asked lol, my bad. I just need to find a similar asset to the land transfer switch that is the vanilla game.
Corporal Cal Jan 1, 2022 @ 5:18am 
I got around the exploding generator by changing the '_target SetDamage' value to 0.1.
@Rogue_THE_GAMER is there way or a script that will enable you to turn lights on and off. For example I want to make a range where I can train members in light and then they practice with NVG's
Roque_THE_GAMER  [author] Mar 17, 2021 @ 10:03pm 
the script damages the Switch and its intended, but mine does not explode, is that a mod you are using? can you still use the Switch?