Jump to content
Sign in to follow this  
surfer

Trigger question: Not present but also not dead.

Recommended Posts

This should be an easy one but I just don't get it to work:

I want the trigger to fire once one all of my team has left the AO. Got the teamleader grouped (F2) with the trigger and "whole team" set in it. Unfortunately the trigger always fires once one of us dies.

Apologies if my description is crap, I'm quite tired.

Thanks for any help!

Share this post


Link to post
Share on other sites

Thanks but I still don't get it to work, probably I'm not implementing it right. Anyway, can you tell me how to tell the one that is triggering? Then I could have the condition: this and alive triggerer, when it's grouped to the team.

Share this post


Link to post
Share on other sites

Tested in game and worked for me?

dont group trigger

Have you named your group? eg (in leaders init): group1 = group this;

#trigger activation: anybody

#condition:

{_x in thislist} count units group1 == 0

#trigger OnAct: hint "trigger Activated";

Edited by Mattar_Tharkari

Share this post


Link to post
Share on other sites

I figured now the trigger fires if I enter a boat or car, probably because I'm changing groups then? Appreciate your help!

Share this post


Link to post
Share on other sites

if you want to count units inside of vehicles, too then just use vehicle _x instead of _x

e.g. something like

{(vehicle _x) in thislist} count units group1 == 0

when entering a vehicle the unit itself isn't listed anymore in thislist of a trigger, but its vehicle is listed there

when a unit is not inside of a vehicle, vehicle someunit just retuns someunit

Share this post


Link to post
Share on other sites

activation: side of the group, or better yet "any"

condition:

{(alive _x) &&  (vehicle _x in thislist)} count units groupname == 0

Share this post


Link to post
Share on other sites

Thanks to the three of you guys, works perfectly now! :-)

But to be honest I still don't get the synthax of it. Have to learn so much more.

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  

×