Bruce_D Posted May 17, 2022 Posted May 17, 2022 Hi, With the function “getAmmo” I have the live ammo of a plane. On the “env.mission” table I can find that a plane started with fuel tanks or not. Is there any function that shows if the plane still have the fuel tanks? Thanks for the help
Grimes Posted May 17, 2022 Posted May 17, 2022 Not directly. If you call Unit.getFuel() and the value is above 1.0 then you know that aircraft has at least one external fuel tank. I don't recall if jettisoning fuel tanks is part of the shot event or not. 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
Bruce_D Posted May 17, 2022 Author Posted May 17, 2022 1 hour ago, Grimes said: Not directly. If you call Unit.getFuel() and the value is above 1.0 then you know that aircraft has at least one external fuel tank. I don't recall if jettisoning fuel tanks is part of the shot event or not. Hi @Grimes, Thanks for the answer, but unfortunately jettisoning fuel tanks is not part of the shot event, I’ve tried it. I call getFuel(), but if it is bellow 1.0 it does not necessary means that the plane have jettisoned the fuel tanks. I’m trying to find another way. Thanks anyway.
Recommended Posts