Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Cheapshot

Mission End troubles

Recommended Posts

Well, as I'm still getting my mission polished up I changed the way I want the conditions set for ending the mission.

For a quick rundown here's what happens:

Mission starts with Task One (destruction of units), completion of Task One triggers creation of Task Two, which is to eliminate all OpFor in an area and hold it.

There is a possibility that the OPFOR units can be eliminated before the player arrives, so I need an additional trigger to make sure the player arrives at the destination before the end.

The elimination trigger is set for "Type NONE" OPFOR Not Present plus Task2 setTaskState "SUCCEEDED"; target2=true; in activation.

The final trigger I have set is "Type End#1" BLUFOR Present plus Target2; in the conditions.

I'm having 2 issues here. First off, the elimination trigger is not giving me a success even though there are no OpFor within the trigger area. Then, the ending never occurs.

Any tips to getting this to work correctly?

Also, is there a way to insure that the actual player needs to arrive in the last trigger area before the ending occurs?

Share this post


Link to post
Share on other sites

I'm a bit of a noob, so I don't know if thi swill help, but you can group (F2) the trigger to the player (or any unit.) you can then re-open the trigger and there is a new drop down box to specify who exactly from that group should trigger it.

you could put "Target2 = 0;" in the player's init field. Trigger one would then have "Task2 setTaskState "SUCCEEDED"; target2 = 1;" in the on act field.

In the final trigger, the condition could be "this AND target2 = 1;"

If grouped to the player, this would mean that the final trigger would only fire if the player himself were in the trigger area and the variable "target2" had a value of 1.

You could probably do this without the variable though. have trigger 1 say "Task2 setTaskState "SUCCEEDED";", then in trigger 2 have "this AND TaskCompleted Task2;"

Then it would only fire if the player were present and had already accomplished "Task2".

Hope that helps a bit,

Dave

Share this post


Link to post
Share on other sites

Yep, ran across a good way to finish this up using your hints too.

First I made sure the player name was 'Bravo'.

The elimination trigger condition is noted as 'this AND holding' and it's activation is 'Task2 setTaskState "SUCCEEDED"; target2=true;'

The second trigger is named 'Holding' with condition as 'target2=true; Bravo distance Holding <100'

With this set up, all conditions have to be met before the mission ends...

Share this post


Link to post
Share on other sites

cool, I didn't know about the "this AND holding/triggername" bit, that will save me plenty of copy and pasting in future trigger conditions!

Thanks

Dave

Share this post


Link to post
Share on other sites
Sign in to follow this  

×