Jump to content
Sign in to follow this  
CaptainBravo

Trigger activated only by ground forces

Recommended Posts

Hey everyone,

I have searched and searched as I could have sworn I saw a post somewhere about activating a trigger only by ground forces.

Any links or ideas are highly appreciated.

Share this post


Link to post
Share on other sites

{_x iskindof "Land"} count thislist > 0

Land or Landvehicle, cant remember.

typeof/iskindof, wiki has the the typenames listed, you can check for land or for not air etc.

Share this post


Link to post
Share on other sites

I have tried both but no luck. I have searched wiki but did not find list.

Any links to list are highly appreiated.

Share this post


Link to post
Share on other sites

this && ({(_x isKindOf "LandVehicle") || (_x isKindOf "CAManBase")} count thislist) > 0

and

this && ({((getPosATL _x) select 2) < 10} count thislist)

Doing it like this, you also have to build in a check in the On Act or script called from On Act, because thislist will still contain non-land based types that happen to be in the trigger area at the same time as ground troops.

Another way to do it:

this && (((getPosATL (thislist select 0)) select 2) < 10)

If the trigger is set to once, the first ground unit to enter it will be in thislist inside On Act.

If its repeatable, it either waits for that first unit to leave before activating again or does it for every ground unit that enters. I am not sure.

If it is the latter, you could always use units group command on that unit to have the effects apply to his entire group.

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  

×