Jump to content
Sign in to follow this  
Cytreen

Trigger !alive multiple objects

Recommended Posts

Im trying to get my Tasks Setup correctly and need help with the 2nd trigger. Task is to destroy multiple weapon crates in a town. Upon last crate Tack set to complete.

Here is the trigger that works for 1 object;

Condition
!alive objectname;

On activation
tskDesCache setTaskState "Succeeded";

Need help with the condition field for when all multiple object die Tack is set to compleat

Condition
!alive object1, object2, object3, object4;

On activation
tskDesCache setTaskState "Succeeded";

How do you write a !alive for multiple objects and && didnt seem to work.

I tryed

!alive obj1 && obj2

But it did not work

Edited by Cytreen

Share this post


Link to post
Share on other sites

!(alive obj1) && !(alive obj2)

OR

In each weapon crate sub trigger,

On Activation 
obj1_done=true; 

On Activation 
obj2_done=true; 

Then have a global trigger

Condition
obj1_done && obj2_done

Edited by gnarly_rider

Share this post


Link to post
Share on other sites

Sweet. Thank you so much. It was bugging me all day trying to do that lol. I used the first example and it worked perfectly. The other way i will use for a global check for all task completed to end mission. Now im just down to making a task complete trigger when a officer1 and officer 2 is captured.

Edited by Cytreen

Share this post


Link to post
Share on other sites
{alive _x} count [obj1,obj2,obj3,obj4] < 1

  • Thanks 1

Share this post


Link to post
Share on other sites

Got another question that i could not find in the biki. How do you make it so that a trigger only activates from a Player and not just bluefor.

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  

×