Jump to content

Recommended Posts

Hello all

 

I'm looking to add some challenge to a mission by having certain conditions that if breached will result in mission failure.

 

First of all, I have a trigger that will fail the mission if the player's RTO dies. However, I also want the mission to fail if a total of three of the player's squad are killed.

 

Additionally, I have some civilians on the map and would like the mission to fail if two are killed.

 

Any help on achieving this would be greatly appreciated!

 

Thanks.

Share this post


Link to post
Share on other sites

You could use simple counter for the group members and the civilians.
Initialize those variables somewhere:
 

DeadCounterGrp = 0;

DeadCounterCiv = 0;

 

And each unit could have a script attached which checks if they're dead:
 

@!alive this

DeadCounterGrp = DeadCounterGrp +1;

exit

 

The trigger would then have "DeadCounterGrp >= 3" in its conditions.

 

  • Like 1

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

×