Jump to content
Sign in to follow this  
Bunny75

Condition: Not "air"

Recommended Posts

How do I write the syntax in the trigger condition field if I wan't the trigger to be activated by west and by anything else than isKindOf "Air"?

I've tried several variations but with no luck.

Share this post


Link to post
Share on other sites

Trig: BLUFOR, present, repeatedly

Cond: {!(_x iskindof "Air")} count thislist > 0

Share this post


Link to post
Share on other sites
Trig: BLUFOR, present, repeatedly

For the trigger's usual settings to work, the condition needs to also contain "this", that's why a trigger's default condition is always this, as it refers to its own conditions.

So for a trigger that goes off for BLUFOR present or any kind of aircraft, you'd have:

(this) or ({_x isKindOf "Air"} count thislist > 0)

edit:

Come to think of it, "thislist" is only going to contain a list of BLUFOR units present, since those were the conditions. You'd need an anything present trigger with the condition as something like this:

(west countSide thislist > 0) or ({_x isKindOf "Air"} count thislist > 0)

Edited by bhaz
typolol + i failed

Share this post


Link to post
Share on other sites

Come to think of it, "thislist" is only going to contain a list of BLUFOR units present, since those were the conditions.

That's exactly why I even wrote the trigger settings and not just condition.

Share this post


Link to post
Share on other sites

Ah, completely misread it.

The condition I posted above is for any blufor unit or an air unit from any team. Well, it's there if anyone wants it. :p

Share this post


Link to post
Share on other sites
Trig: BLUFOR, present, repeatedly

Cond: {!(_x iskindof "Air")} count thislist > 0

This works fine. Bhaz, this is not needed in the condition. thislist contains only BLUFOR as it has been specified too.

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  

×