ramayana Posted October 27, 2015 Posted October 27, 2015 I've been using this lua predicate condition in 1.2.x to check chopper's landing if Unit.getByName('unitsname'):inAir() == false then return true end but it is not working in 1.5 open beta(latest). Is this a bug or did I miss something? If it's a bug, is there any alternative method to check landing condition? Thanks in advance.
Grimes Posted October 28, 2015 Posted October 28, 2015 Lua predicate is broken. The actual function should work fine. 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
ramayana Posted October 28, 2015 Author Posted October 28, 2015 Lua predicate is broken. The actual function should work fine. Thanks Grimes! But I'm just copy and paste guy about lua scripting, if you don't mind please help me more. Then how to use the code without lua predicate to make it work properly? Specifically I want set flag 1 true every time the plane touches the ground. And every time the plane is in the air, set flag 1 false.
Recommended Posts