lax 10 Posted November 1, 2011 Hi. I just need help real quick on some triggers I have in my training mission. Basically, I have designed a course for a convoy drill which I will be doing with about 28 men from my platoon in the 7th Cavalry. The course involves a convoy driving through various triggers which activate things like Targets popping up, fake ieds, enemy spawns, etc. So far, I have all my triggers set to "once." Some of the trigger fields are very small, (just a couple of sq meters) so If i set them to repeatedly, each vehicle in the convoy will set off the trigger, which I do not want to happen. I was wondering how I could make it so the course could be playable more then once, for example, I could use a radio command to reset all the triggers or have them reset automatically after a certain length of time. All help is appreciated, Thanks! Share this post Link to post Share on other sites
demonized 20 Posted November 1, 2011 (edited) You can use setVariable and getVariable on triggers, atleast in A2 CO 1.59 (latest official patches - no betas) name all your triggers and place this in init.sqf: example is 3 repeating triggers named trig1, trig2, trig3 wich can be restarted during the mission with a radio trigger or a addaction if you need only admin to have acess to the reset. init.sqf {_x setVariable ["convoy", true, true]} foreach [trig1,trig2,trig3]; to reset the convoy triggers, place a radio trigger or use addaction to run this code (on act field of radio trigger) {_x setVariable ["convoy", true, true]} foreach [trig1,trig2,trig3]; add in this in the condition of the triggers along the convoy route: this AND thisTrigger getVariable "convoy" if you have something else than "this" in the condition of the convoy route triggers ofcourse use that with "AND thisTrigger getVariable "convoy" after it. in on act of trigger add this: thisTrigger setVariable ["convoy", false, true]; now once a trigger is activated, even if its a repeated one, it will not be able to activate again until the admin or someone uses the radio to reset the conoy triggers again. Edited November 2, 2011 by Demonized made instructions clearer. Share this post Link to post Share on other sites
lax 10 Posted November 1, 2011 Hmm.. I think I am doing something wrong. I have named all my triggers and set them to "repeatedly". Then I put this into init.sqf _x setVariable ["convoy", true, true]} foreach [Trig1,Trig2,Trig3,Trig4,Trig5,Trig6,Trig7,Trig8,Series1,Series2,Series3,Series4,Series5]; Then I put the same code as above into the On Act of a radio alpha trigger. Also in the on act of the radio alpha trigger is this: thisTrigger setVariable ["convoy", false, true]; And finally in the condition of the radio alpha trigger is this: this AND thisTrigger getVariable "convoy" Still I can drive in and out of one of the triggers and it sets off each time without radio prompt. I definitely am doing something stupid wrong here. Share this post Link to post Share on other sites
Joe98 92 Posted November 2, 2011 It is possible to arrange it so that only one unit will set off a trigger. I think you need to Synch that unit to the trigger. I have not tried it and I am at the office so is only a guess. . . Share this post Link to post Share on other sites
demonized 20 Posted November 2, 2011 And finally in the condition of the radio alpha trigger is this: this AND thisTrigger getVariable "convoy" Still I can drive in and out of one of the triggers and it sets off each time without radio prompt. I definitely am doing something stupid wrong here. I meant for you to add the AND thisTrigger getVariable "convoy" to all the convoy triggers condition field, trig1,trig2, etc... no need for it in the radio trigger to reset them. ---------- Post added at 04:19 PM ---------- Previous post was at 03:58 PM ---------- added a simple and quick demo mission with 4 triggers, requires OA Share this post Link to post Share on other sites