Jump to content
Sign in to follow this  
JMOxx75

limit trigger activation by z axis

Recommended Posts

I really did look at a lot of threads about this but didn't have any luck specifically. I am looking for a way to limit an air vehicle from activating a trigger unless they are at a certain distance or lower to the ground.

Share this post


Link to post
Share on other sites

I have found the method below (adjust the 5 as necessary) posted here by Deadfast to be effective:

this && {((getPosATL _x) select 2) < 5} count thislist > 0

It basically says if the trigger is activated and there is at least one unit under 5m above terrain level then the condition is met.

There is also a new A3 command, isTouchingGround that simplifies it further if you want to ensure they are on the ground (will not work for an aircraft at low height)

this && {isTouchingGround _x} count thislist > 0

Share this post


Link to post
Share on other sites

thanks Loyalguard that is exactly what I was looking for. However now that I see what they are I admit I wasn't looking close enough at the list of Arma commands.

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  

×