Sign in to follow this  
Followers 0
CaptainBravo

End Trigger if player dies without all objectives finished ?

4 posts in this topic

I have a mission with Objectives 1, 2 and 3

I want mission to end if player dies but not all objectives accomplished. The twist is the player is supposed to die in last objective so if dies after accomplishing all objectives he wins and if he dies with one objective not finsihed he loses. Any tips are appreciated.

Share this post


Link to post
Share on other sites

Loose trigger condition if dead and not all completed:

!alive player AND (!obj1 OR !obj2 OR !obj3)

Make sure you have set obj1,2,3 to false in mission start, also set each of them to true once a objective is completed.

Now for all completed and dead, im sure you can figure it out now:

Win trigger condition:

!alive player AND obj1 AND obj2, AND obj3

Share this post


Link to post
Share on other sites

In MP, if all playable units are dead, mission ends immediately (or pretty much immediately), and your scripts won't even run.

In SP, if the player dies mission is over as well, and again your scripts won't even run. You won't even get a debriefing screen when dying in SP.

Share this post


Link to post
Share on other sites

Thanks Demonized for the script, much appreciated.

@galzohar: you are right the mission will end right away before script is even run. My way of getting around it, is to creat a "playable" unit somewhere on map so if all players die, player can switch to the last remaining playable unit for mission end. Not sure if there is a better way of doing it, but this seems to work.

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  
Followers 0