OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: delloc on 12 Feb 2004, 21:23:10

Title: Linking Triggers
Post by: delloc on 12 Feb 2004, 21:23:10
Ok this is probably a simple answer, but here is my situation:

2 Triggers, both link to 2 different squads.
Each are designed to go off when the squad is eliminated..
Whole Group --- NOT PRESENT

Basically I want to link the two so that the second trigger will not "execute" until the first trigger is TRUE

I have tried to put X=1 in the first switch (On Activation)
and X=1 in the condition filed on the second trigger.

to date nothing works..


Any Ideas?

Thanks
Title: Re:Linking Triggers
Post by: Harkonin on 12 Feb 2004, 21:33:50
Try dead = true in 1s on activation and in the other put Dead in the condition.
Title: Re:Linking Triggers
Post by: delloc on 12 Feb 2004, 21:53:16
Ok tried and it did not work right  :-\

Put dead = true in 1st trigger On Activation
put dead in the condition of the second trigger

AS soon as group one dies (Trigger One works),

The second script immediatly (Without even waiting for itselfs condition to be met) executes the script ::)
Title: Re:Linking Triggers
Post by: delloc on 12 Feb 2004, 22:21:38
Something I just Learned.....

If you use the Condition field, it ignores the trigger....

SO putting dead in the Condition field it will test "dead" not the trigger!!!!

Crazy ???
Title: Re:Linking Triggers
Post by: Harkonin on 12 Feb 2004, 22:24:35
You need to have

this && dead

in the Condition
Title: Re:Linking Triggers
Post by: Planck on 12 Feb 2004, 22:28:44
If you put dead in the condition field of the second trigger then the condition will be true once trigger 1 has fired.

Trigger 2 will then do its thing.

If this is to run a script, then it will run the script.

Planck
Title: Re:Linking Triggers
Post by: delloc on 12 Feb 2004, 22:29:17
I bow to you!!!!!!! :D



THANKS!!!!!!!!!!!!!