RED 0 Posted December 22, 2002 You can't as far as I know, why not just put a variable into the trigger which stops it from being activated as that is the same as it getting deleted. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this AND triggeractive == 1<span id='postcolor'> so set triggeractive to 0 in a triggers on activation field or script. RED Share this post Link to post Share on other sites
eisa01 0 Posted December 22, 2002 didnt get it to work In init.sqs i have put up this: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">var1 = 0<span id='postcolor'> its for MP. there are 2 triggers. both shows a small cutscene. if p3 (a player) is present the 1st trigger gets activated 1st trigger: Condition: alive p3 On Activation: var1 = 1; [] exec "camera.sqs" 2nd trigger is supposed to activate when p3 is not present. but if i use !alive p3 it activates also when p3 dies. so i tried this: Condition: var1 == 0 AND !(alive p3) On Activation: [] exec "camera2.sqs" oh and i'll give you credit in brifing since you've been very helpful Share this post Link to post Share on other sites
LightBringer 0 Posted December 26, 2002 Hi, i'm on my way to make a city power electric generator. I got the building for it (i used the mechanic building). So, now i made three triggers. Trigger A: switches off all the lamps in the city. Trigger B: switches on all of the lamps. Trigger C: check if the generator is present (not destroyed), and if it get destroyed it switches down the lights. The question: How can is deactivate the trigger B, when Trigger C is true? Thanx! Share this post Link to post Share on other sites
RED 0 Posted December 26, 2002 In the onactivation field of trigger C put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">lightsoff = 1<span id='postcolor'> In the condition field of B put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">This (or what ever you had in it before) && lightsoff == 0<span id='postcolor'> That will stop Trigger B from activating when C has been activated. RED Share this post Link to post Share on other sites
LightBringer 0 Posted December 26, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ Dec. 26 2002,21:02)</td></tr><tr><td id="QUOTE">In the onactivation field of trigger C put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">lightsoff = 1<span id='postcolor'> In the condition field of B put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">This (or what ever you had in it before) && lightsoff == 0<span id='postcolor'> That will stop Trigger B from activating when C has been activated. RED<span id='postcolor'> Not working. By the way i use triggers like this: Trigger A: Activation: Anybody present (multiple times) condition: this on activation: Object 706 switchLight "Off"; Object 707 switchLight "Off"; Object 708 switchLight "Off"; Object 709 switchLight "Off" Trigger B: Activation: anybody present (multiple times) condition: this on activation: Object 706 switchLight "On"; Object 707 switchLight "On"; Object 708 switchLight "On"; Object 709 switchLight "On" Trigger C: Activation: static buildin not present (once) condition: this on activation: Object 706 switchLight "Off"; Object 707 switchLight "Off"; Object 708 switchLight "Off"; Object 709 switchLight "Off" So, there isn't any command which deactivates Trigger B? Because I can't use your version.. Thx. Share this post Link to post Share on other sites
LightBringer 0 Posted December 26, 2002 Nobody knows any possible version which solves this problem? I tried it today all day long, but found nothing.. Share this post Link to post Share on other sites
LightBringer 0 Posted December 26, 2002 YEAAAH!! After a lot of hours with the help of Red's hint i do it! So you write a good idea, but you didn't noticed, that i need another trigger, which sets the lightsoff to zero in default! Buf after i tryed it it works! Now i can make a city with an electronic relay, if which is destroyed, there aren't any lights! YEAAH! Thx for the hint! Share this post Link to post Share on other sites
ralphwiggum 6 Posted December 27, 2002 just to remind some other rookie editors like me. it is highly advisable that you initiallize some variables before hand, like in init.sqs. Share this post Link to post Share on other sites
bn880 5 Posted December 27, 2002 Just to answer the topic title, you can probably name the trigger and use deleteVehicle on it when you want. I don't remember checking the result, but I use this quite alot. EDIT: Just checked, it does really work. Share this post Link to post Share on other sites