Jump to content
Sign in to follow this  
vincentz

Trigger for AntiAirRadar (units aboveheight) Simple question :D

Recommended Posts

Hey :D

I wanted to make a trigger that detects air units flying close to AA Radar, but I dont know how to negate UnitsBelowHeight?

// ANTI AIR RADAR INTERCEPT
_trg=createTrigger["EmptyDetector", AntiAirRadarpos]; 
_trg setTriggerArea[1500,1500,0,false];
_trg setTriggerActivation["WEST","PRESENT",true];

_trg setTriggerStatements["'Air' countType thislist > 1 && count (thislist unitsBelowHeight 50) !> 0 ", "hint 'you have been detected';_handle = execvm 'intercept.sqf'", "hint 'trigger off'"]

_trg setTriggerTimeout [10, 10, 10, false];

I guess its the !> that creates the error, but I have no clue to write "trigger on airunits except if units flying below 50m."

Heeeelp please :D (Im no programmer, so please no sarcastic rolling of eyes or such ;))

EDIT : Nevermind. I put it here && !(count (thislist unitsBelowHeight 35) > 0) and it worked :D sweeet !

Edited by vincentz

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  

×