OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cool Hand on 24 Jan 2003, 09:42:49

Title: Mission wont end when it should (unit dependent end) HELP!
Post by: Cool Hand on 24 Jan 2003, 09:42:49
ive got a coop mission with 4 objectives. the last 3 of them are required to end the mission, PLUS the whole group needs to be at the extraction point for it to end. thats because the last objective is just a recon objective and I dont want that the people will send just one guy recon the last objective and then end the mission (cause there will be more units to kill on the way back).

I made a trigger which I connected to the group leader. I selected present, whole group, repeately, and type end#1
condition:
this AND not (alive bmp1) AND not (alive fuelural) AND not (alive shilka1) and not (alive convoyt80) and not (alive repairural) AND not (alive ural1) AND getdammage (Object 4132) == 1 OR getdammage (Object 4131) == 1 AND (grp4 knowsabout t72a>0 OR grp4 knowsabout t72b>0 OR grp4 knowsabout t80a>0 OR grp4 knowsabout shilkaa>0 OR grp4 knowsabout shilkab>0);
on activation: forceend

when all objectives are destroyed and that last recon part is done also, I head to the extraction point where the rest of the group already waits. but the map wont end when I enter the trigger area!!!

what the heck did I do wrong?
Title: Re:Mission wont end when it should (unit dependent end) HELP!
Post by: Artak on 24 Jan 2003, 09:59:42
omg that's some condition line there  :D

I'm not supriced it doesn't work. that's got to be the most confusing end trigger condition line I've ever seen   ;D

You've got so many and's and or's there.. I suggest you make a separate trigger for the OR part of that condition, the put in that triggers activation  ormet=true  and add that to the end trigger's condition line with AND ormet.

Dunno.. but I suggest you sort it out a bit.
Title: Re:Mission wont end when it should (unit dependent end) HELP!
Post by: Cool Hand on 24 Jan 2003, 10:08:41
Ive got separate triggers for each objective. so youre suggesting that I should put a name into each of those objective triggers and put their name=true in the condition line of the end trigger?
Title: Re:Mission wont end when it should (unit dependent end) HELP!
Post by: Cool Hand on 24 Jan 2003, 10:27:50
ok it worked! I was so frustrated that I didnt even think about that.
thank you :)