Jump to content
Sign in to follow this  
Morten87

Help with multi objectives.

Recommended Posts

Hi.

I'am making a mission, which involves 3 different objectives.

1. Objective is to destroy 6 supply vehicles, (ammo and fuel) they are named (Ammo1, Ammo2, Ammo3 and Fuel1, Fuel2, Fuel3)

2. Objective is to eliminate an officer, he is named (Officer1).

3. Objective is to reache a certin area before the mission will end. How do i do this?

I'dont have internet home so i ask this question now, since if I do something wrong i cant figure it out before monday, please help me put up the correct trigger..

Thanks.

Share this post


Link to post
Share on other sites

1.

Trigger activation: NONE

Trigger condition:

not alive Ammo1 && not alive Ammo2 && not alive Ammo3 && not alive Fuel1 && not alive Fuel2 && not alive Fuel3

Code executed when trigger is activated:

Objective1=true; hint "Objective 1 accomplished."

2.

Trigger activation: NONE

Trigger condition:

not alive Officer1

Code executed when trigger is activated:

Objective2=true; hint "Objective 2 accomplished."

3.

I assume you want the mission to be finished when Obj1 and Obj2 are done and the player reached the area.

Then the trigger (which will describe the area) has to be activated on BLUFOR (or OPFOR when the players side is EAST), PRESENT

TYPE: End #1

condition:

this && Objective1 && Objective2

Perhaps this should be a multiplayer mission, then the last trigger must only be activated when the whole team reaches the area. In this case my only idea is to give every unit a name, e.g. Unit1, Unit2, ..., and the condition of trigger 3 must look like

Objective1 && Objective2 && (Unit1 in thislist || not alive Unit1) && (Unit2 in thislist || not alive Unit2) && ...

Should give you the basic idea.

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  

×