Jump to content
CoG Joel

mission complate with triggers stuff

Recommended Posts

So im bit stuck with a triggers.

What im trying to do is after kill ai then taking it back to point of trigger its mission complate/end

 

in Con

ture && !Alive Warlord

 

on Atc

{ if(!(Alive _x&& _x) == Warlord)then { "KILLED" call BIS_fnc_endMission; }; } foreach thisList;

 

 

Share this post


Link to post
Share on other sites

There is couple typos in your code. And you dont need condition check in Act since you already did this in Con.

 

it should be:

 

 

in Con

true && !Alive Warlord

 

on Atc

 "KILLED" call BIS_fnc_endMission;

 

 

 

I hope that helps.

 

  • Like 1

Share this post


Link to post
Share on other sites

thank you mate

 

but im  getting the complate mission, but i only wont it after the dead ai been drop off inside trigger?

Share this post


Link to post
Share on other sites
11 minutes ago, CoG Joel said:

thank you mate

 

but im  getting the complate mission, but i only wont it after the dead ai been drop off inside trigger?

 

oh sorry, missed that.

 

The problem with that is that thislist does not contain dead units. So you could do something like this:

 

 

Condition:

 (Warlord distance2d trigger < 5 && !alive Warlord)

Action:

"KILLED" call BIS_fnc_endMission; 

 

In the Condition field you must name the trigger as "trigger" for it to work. And you can change the distance "5" to anything you want.

 

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

×