Lieutenant Shaft 0 Posted January 14, 2007 ...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
chris330 0 Posted January 14, 2007 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
baddo 0 Posted January 14, 2007 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