Forum Jump :

Author Message


Posts: 23
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name: ravajava

 
#1 Posted at 2011-04-02 02:23        
     
Alright here's my problem. I have several targets that must be destroyed that are all in close proximity to each other. Instead of making multiple objectives, I was wondering if I could make them one objective, and only have the game say "Succeeded" after all three targets are destroyed.

My other question is, the team has to exfil to a position after the objective is complete. When they get there the mission is complete. How do I make it so the exfil point trigger only fires if the mission objectives are complete?

I'm not dumb. I just have a command of thoroughly useless information ~Bill Watterson

Author Message

W0lle  

call me evil


Posts: 1968
Rank:


Country: de
Location:
Occupation: CWR III Project Leader
Age: 104
In-game name:

 
#2 Posted at 2011-04-02 02:45        
     
You need to name all three objectives, here we call them 'target1', 'target2' and 'target3'.

In the trigger which checks if all 3 are dead you type in the conditions field:
!alive target1 AND !alive target2 AND !alive target3

In the onActivation line you type:
targetsdead=true; publicVariable "targetsdead"
If your mission is SP you can skip the publicVariable.

Now to the end mission trigger:
Place the trigger with a size big enough to hold your team - 100 meters should be enough. Group (F2) the trigger with your team leader and change the activation to 'whole group'. This activates the trigger only when the complete group is inside.

To check if both the group is present and all 3 targets are dead you write in the condition line of that trigger:
this AND targetsdead


Advertisement


Author Message


Posts: 23
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name: ravajava

 
#3 Posted at 2011-04-02 18:14        
     
thanks, it works. Where do you guys learn all of this coding? Is it a programming language?

I'm not dumb. I just have a command of thoroughly useless information ~Bill Watterson

Author Message

W0lle  

call me evil


Posts: 1968
Rank:


Country: de
Location:
Occupation: CWR III Project Leader
Age: 104
In-game name:

 
#4 Posted at 2011-04-02 19:20        
     
Learning by doing, looking how others solved a similar problem. It's some sort of programming language, based on C I believe but above code samples are not really 'programmed' but just scripting commands and logical operators.