Jump to content
ziptlytical

If Unit Not alive End Mission (trigger) [SOLVED]

Recommended Posts

How do i end a mission when the officer is not alive via trigger player walking into the trigger zone?

 

Officer name is officer1 

 

is it something like this?

 

if (!alive officer1) 

 

thanks

Share this post


Link to post
Share on other sites

ConD : !alive officer1

 

then set the trigger up for END game, then the game will end when officer1 is killed.

  • Like 1

Share this post


Link to post
Share on other sites

I have a video tutorial actually demonstrating this against multiple units, and an ammo cache, while at the same time

connecting each to a task, and then ending the mission, check it out:

As for the part where the player walks into the trigger and the officer is killed,

set the trigger to player present

then in the condition would be !alive officer1

      Ending the mission can be done using the ends in the trigger, or adding

[ ] call bis_fnc_endmission;

to the on activation box of the trigger.

      Video above is for individual units/ammo cache, one below is for area trigger.

So you can have tasks if you want, either way with or without tasks this is just one of many ways to do it.

Hope that helps. Cheers!

  • Like 3

Share this post


Link to post
Share on other sites

Hey guys it works but doesnt work.

 

trigger size: A: 3 B: 3

Activation: AnyPlayer

Present

condition: !alive officer1

On activation: "end1" call BIS_fnc_endMission;

 

the mission ends after i kill the officer even if the player is not in the trigger zone. Want it to end after officer is killed when the player enters the trigger zone.

Share this post


Link to post
Share on other sites
47 minutes ago, ziptlytical said:

Hey guys it works but doesnt work.

 

trigger size: A: 3 B: 3

Activation: AnyPlayer

Present

condition: !alive officer1

On activation: "end1" call BIS_fnc_endMission;

 

the mission ends after i kill the officer even if the player is not in the trigger zone. Want it to end after officer is killed when the player enters the trigger zone.


Did not understand that you wanted it to end when the officer was dead and you had to go to a trigger.  My bad..
but then @Schatten post  is the best solution.

Share this post


Link to post
Share on other sites
On 12/28/2020 at 9:27 AM, Play3r said:


Did not understand that you wanted it to end when the officer was dead and you had to go to a trigger.  My bad..
but then @Schatten post  is the best solution.

No worries, as long as we got it to work that's all that mattered.  check out my mission i made using this. i plan to do more of these.

 

https://steamcommunity.com/sharedfiles/filedetails/?id=2340697663

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

×