Jump to content
Sign in to follow this  
Lieutenant Shaft

Is there any way to set a trigger that goes off...

Recommended Posts

...when an aircraft goes above a certain altitude? The OFPEC comref doesn't help me any and I really need this for a low-altitude apache incursion.

Share this post


Link to post
Share on other sites

Plenty of ways. Here's one.

In the condition field type:

(getpos myheli select 2)>50

That's it.

Share this post


Link to post
Share on other sites

Basicly it should be a logic something like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if ( (getPos airplane) select 2 > 500 ) then { hint "mystuff" }

getPos returns a position array [x,z,y] where y is height above the ground (left-handed Cartesian coordinate system in mdsn.com). You can use the select command to choose that from the array and compare that value then to whatever you want, in this example 500 meters. Into a trigger you could translate it as:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Condition: (getPos airplane) select 2 > 500

On Activation: hint "mystuff"

Baddo

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  

×