Jump to content

Live FuelTanks


Bruce_D

Recommended Posts

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

Link to comment
Share on other sites

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...