Hi, I was wondering if there is a way to link triggers to one another within Radiant? I would like one trigger to cause another to be triggered at the same time. If anyone could help that would be awesome! Thanks!
make them have the same targetname and then use this for the script:
Code Snippet
Plaintext
trig = getentarray("TRIGGER_TARGETNAME_HERE","targetname"); for(i=0;i<trig.size;i++) { trig[i] waittill("trigger",player); iprintln(player.playername+" has activated trigger "+i); // this is what ever the script is that u want to happen after the trigger is hit }
make them have the same targetname and then use this for the script:
Code Snippet
Plaintext
trig = getentarray("TRIGGER_TARGETNAME_HERE","targetname"); for(i=0;i<trig.size;i++) { trig[i] waittill("trigger",player); iprintln(player.playername+" has activated trigger "+i); // this is what ever the script is that u want to happen after the trigger is hit }
Ok, thanks. Where would I put that script? In what GSC? I want to link my buildable power switch to Harry's perk power switch so my buildable one activated Harry's if you get what I mean?
make them have the same targetname and then use this for the script:
Spoiler: click to open...
Code Snippet
Plaintext
trig = getentarray("TRIGGER_TARGETNAME_HERE","targetname"); for(i=0;i<trig.size;i++) { trig[i] waittill("trigger",player); iprintln(player.playername+" has activated trigger "+i); // this is what ever the script is that u want to happen after the trigger is hit }
if im reading it corretly he wants to have multiple triggers that all activate at the same time if one of them gets triggered so that wouldnt be right it would be somthing like this
Code Snippet
Plaintext
// sorry if theres any syntax errors or spacing is off, scripting in the ugx comment box is hard :(
if im reading it corretly he wants to have multiple triggers that all activate at the same time if one of them gets triggered so that wouldnt be right it would be somthing like this
Code Snippet
Plaintext
// sorry if theres any syntax errors or spacing is off, scripting in the ugx comment box is hard :(
I know what he ment, but I was assuming he had some knowledge in scripting to know to put another loop to disable the rest of the triggers. I only gave him what he needed
spoonfeeding will never teach anyone. we have given him what he needs to make it
Did I say 100% what to do? No. And Harrys script probably already has line somewhere to make his thing work. And besides, Rich doesnt know anything about scripting, so based on that much info is going to take him 2 years
Did I say 100% what to do? No. And Harrys script probably already has line somewhere to make his thing work. And besides, Rich doesnt know anything about scripting, so based on that much info is going to take him 2 years