Jump to content
Sign in to follow this  
thetrooper

Condition problem

Recommended Posts

Hi, got an isue. I have a trigger and in the Consition I want it to activate oly if two units aar in the list, but also if a trigger has been activated. Would the following work? I seem to remember that this doesn't?

unit1 in thislist || unit2 in thislist AND triggerActivated othertrig;

Share this post


Link to post
Share on other sites

If you want both units to be in the list you need to change || to &&

|| equals OR

&& equals AND

Share this post


Link to post
Share on other sites

this is the confution, I'd like either one of the units to enter, not both, so OR is what I'm after, but I want the other trig to have been activated as well. Hope this makes sense.

Share this post


Link to post
Share on other sites

You were correct, just need some ().

 (unit1 in thislist || unit2 in thislist) AND triggerActivated othertrig  

Also no ; is needed in conditions.

Share this post


Link to post
Share on other sites

Ok that helps. One last thing, is there a script to say in a condition, if a trigger not activated?

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  

×