Jump to content
Sign in to follow this  
sovietroll

help with trigger

Recommended Posts

I need help. I have the following condition inside a trigger

1 < { (side _x == east) && (_x knowsAbout player > 2) } count allUnits

This basically check if at least one enemy has detected player (with certain knowsabout value).

I have know no clue why it is not working. It only work if I test one of the two conditions separately.

Share this post


Link to post
Share on other sites

I'm not the best with code, but maybe you could use the present parameters? Select Blufor in activation and select detected detected by OPFOR

Share this post


Link to post
Share on other sites

the code is going to be inside a script so trigger parameters are not a solution here :(

Share this post


Link to post
Share on other sites

you could try this:

_someoneIsNear = {(side _x == east) AND (_x knowsAbout player > 2)} count allUnits > 1;

this is untested, but i think it should work.

Share this post


Link to post
Share on other sites

If this is for multiplayer, then it's better not use "player" in conditions unless you know what you are doing.

Share this post


Link to post
Share on other sites

solved. I am suppose to use greater than or equal to 1 instead of greater than1

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  

×