武装突袭3

武装突袭3

Light Switch Script
37 条留言
Roque_THE_GAMER  [作者] 2022 年 5 月 12 日 下午 3:44 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
AZOV-MAN 2022 年 5 月 12 日 下午 3:20 
@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 2022 年 5 月 10 日 下午 7:12 
@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 2022 年 1 月 2 日 上午 1:08 
That's good to know. Thanks
Roque_THE_GAMER  [作者] 2022 年 1 月 1 日 下午 5:08 
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 2022 年 1 月 1 日 下午 5:07 
Ah brilliant. Out of curiosity, is that the case for all DLC assets?
Roque_THE_GAMER  [作者] 2022 年 1 月 1 日 上午 8:44 
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 2022 年 1 月 1 日 上午 5:46 
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 2022 年 1 月 1 日 上午 5:18 
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  [作者] 2021 年 3 月 17 日 下午 10:03 
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?
Echo Congo 2021 年 3 月 17 日 下午 9:57 
Whenever I copy the script onto the Transfer Switch and try to use it in-game, the Switch just explodes on me. Any fixes to this?
Jonas Blane (The Unit) 2021 年 3 月 9 日 上午 4:29 
thanks for the script
vet 2020 年 7 月 21 日 下午 10:25 
really sick man, thanks
Crack Jack 2020 年 7 月 17 日 上午 11:47 
btw how do i find the generator thing
Crack Jack 2020 年 7 月 16 日 下午 12:28 
Aight thanks mate
Roque_THE_GAMER  [作者] 2020 年 7 月 16 日 上午 11:56 
Yes.
Crack Jack 2020 年 7 月 16 日 上午 11:08 
Can I use this in single player?
Roque_THE_GAMER  [作者] 2020 年 5 月 6 日 下午 1:11 
Maybe, you would have to reverse engineer that.
Fuze 2020 年 5 月 6 日 下午 1:01 
It's working thanks.
Is-it possible to addapt to other generator or things like this ?
Roque_THE_GAMER  [作者] 2020 年 5 月 6 日 下午 12:24 
Use the one from contact, the script does nessesary checks on it.
Fuze 2020 年 5 月 6 日 上午 11:18 
Hi,
I put your script in an external generator ( the CUP one ), but I can't swich on the light. When I swich off, the light disappeared but I haven't got the "swich on" obtion.
What can I do ?
McDewgle 2020 年 4 月 3 日 下午 5:04 
This allows you to create a light source on any object. Useful for interior lighting without using streetlamps or food lights.
McDewgle 2020 年 4 月 3 日 下午 5:03 
lightAttachObject *misspelled it

(init field of object)
light="#lightpoint" createVehicle [0,0,0];
light lightAttachObject [this,[0,-0.3,0]];
light setLightBrightness 1;
light setLightAmbient [0,0,0];
light setLightColor [256,20,0];
light setLightUseFlare true;
light setLightFlareSize 5;
light setLightFlareMaxDistance 500;
Roque_THE_GAMER  [作者] 2020 年 4 月 3 日 上午 6:19 
are you sure that this is the right command? I never use that and I did not find it in the wiki
McDewgle 2020 年 4 月 2 日 下午 7:53 
It works! Thank you.

Only issue now is that "forEach [light_1,light_2];" does not seem to work on lights created with lightAttacObject. Any ideas?
Roque_THE_GAMER  [作者] 2020 年 4 月 2 日 下午 7:23 
At the line 13 and 38 change the forEach nearestObjects [_caller, [], DistanceToReach];
to
forEach [light_1,light_2];
You can also add more lights as you like
McDewgle 2020 年 4 月 2 日 下午 7:11 
How can I modify this script so that it targets lights with specific variable names instead of all lights within a certain area? Like "light_1" and "light_2".
Brasiel 2020 年 1 月 19 日 上午 5:33 
O cara é brabo mermo
4mboss 2019 年 10 月 18 日 上午 5:56 
Wer Scripten kann hatte das schon 2013 in Missionen! Aber eine gute Idee, es in einem Mod zu verstauen ^^
W.AXXX 2019 年 10 月 17 日 下午 11:42 
Very cool mod.
Better thant just explode the generator ^^.
Twiznak 2019 年 10 月 17 日 下午 5:58 
Hi, This adds a new flavor to task based missions. Thank you!
Jakes 2019 年 10 月 17 日 上午 1:05 
Very nice...quick and easy
diveyez 2019 年 10 月 16 日 下午 10:30 
Will be featured in a new mission I am putting out soon.
[Black_Hawk_BG]_->_<-_X-Ray 2019 年 10 月 13 日 上午 5:10 
Thank you very much again! :) I am going to test it for my own perpose as it looks great - I mean quite simple, but different to add some immersion. I am planning to make a list with such possible scripts and codes in order to create different tasks. Not 100% of the gameplay should be "kill that guy", "destroy that AA emplacement" or any other such kind of task. And the community needs some new and interesting possibilities like that differ from rescuing a downed pilot, searching for intel etc. So, if you are going to create other such scripts, feel free to share them as well. Cheers!
Roque_THE_GAMER  [作者] 2019 年 10 月 12 日 上午 8:31 
I did not really planed to use it in any other mission in the workshop, I worked in this code for a personal mission with my group, I like it and I thought It would be useful for the community.
Roque_THE_GAMER  [作者] 2019 年 10 月 12 日 上午 8:28 
Hi, I used some task modules and trigers provided by the editor, you can download this mission and open the files and check it in the editor, I did not put any other script outside the editor to make it easy for other to open and learn it.

But to make it easy, here is the mission file, umpack it into your missions folder so you can open in the editor
https://drive.google.com/file/d/1PJiU5h7KHzN_EJwYjINjjWdNEnr294xJ/view
[Black_Hawk_BG]_->_<-_X-Ray 2019 年 10 月 12 日 上午 12:07 
This looks amazing! I have been looking for immersive scripts and mods that would make the gameplay better and more realistic. This is awesome and I'd like to use it in my future scenarios. Is it explained or shown how to complete the task like you did in the video above in the link you have posted? If not, explain it step by step, please. I believe it's quite simple, but still... Thank you very much for providing this script and your experience. Have you created anything else like it or are you planning to? :)