Jump to content
Sign in to follow this  
Guest

Trigger problem!

Recommended Posts

Guest

I have been trying for about 3 hours now to get this working, but i suckto much at scripting so i cant figure this one out.

I have 2 triggers, lets call them Trigger A and TriggerB

Now if TriggerA is activated first i dont want TriggerB to be activated at all!!! And the same the other way around.

Pleez reply to this one fast if you know the answer, before i go MAD, or should i say Mad`er...

Share this post


Link to post
Share on other sites

In trigger A's onactivation field type:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">trigb = 1<span id='postcolor'>

In trigger B's condition field put:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this AND trigb == 0<span id='postcolor'>

Make sure trigb = 0 from the start of the mission though.

RED

Share this post


Link to post
Share on other sites

But what do you do if trigger b is first triggered and then trigger a

Share this post


Link to post
Share on other sites

in init.sqs:

trig=true

triggerA:

condition : this and trig

on activation : trig=false

triggerB:

condition : this and trig

on activation : trig=false

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×