ramayana Posted October 27, 2015 Share 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. Link to comment Share on other sites More sharing options...
Grimes Posted October 28, 2015 Share 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: Scripting Wiki, Something... Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD, IADScript, Mission Editing Wiki!, Mission Building Forum Link to comment Share on other sites More sharing options...
ramayana Posted October 28, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts