wess24m Posted May 12, 2013 Posted May 12, 2013 In my missions I've been setting: unit inside zone/unit altitude (2 feet above lz) / unit speed less than 2/unit vertical speed range -0.2 to .2 and it still triggers while still a couple feet in the air. Am I missing a condition I should be setting? I know I could work around this with a flag and time since flag, but it seems like a lot of work just so the Huey can trigger landing actions properly. Any ideas? Thank you in advance.
ENO Posted May 13, 2013 Posted May 13, 2013 Set a flag when that condition that you're putting out is met... then do a time since flag... so give a guy 10 seconds from when he is at the point you have marked now (if you have 2 feet above lz and it's triggering 2 feet above... then perhaps you need to make it 0?)... make it a 5 or 10 second "time since flag" condition and maybe that will give someone enough time to settle on the ground? There is likely a way to script it but I'm no good with script so I'm no help there. If I were going to try and solve the problem that's the way I would do it. At least that's where I'd start. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Grimes Posted May 13, 2013 Posted May 13, 2013 Just use this in an expression, it should work. return Unit.getBYName('huey'):inAir() Although you will want to use an additional condition that requires if the unit is in a specific zone or if it was airborne before landing. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
wess24m Posted May 13, 2013 Author Posted May 13, 2013 Thanks for the replies. I haven't messed with scripting yet so I just went the time since flag route. Hopefully I'll learn how to script, seems useful.
Recommended Posts