What entity is the Scrap Helicopter and RHIB?

Hiya, I have a plugin that stops decay of the Minicopter if it has fuel in the tank using:

(entity as MiniCopter).GetFuelSystem().HasFuel()


And the Rowboat using:

(entity as MotorRowboat).GetFuelSystem().HasFuel()


What would be the equivalent code for the Scrap Helicopter, Submarines and the RHIB?

Any help with this appreciated.

ScrapTransportHelicopter, BaseSumbarine, RHIB.

You can see these in the Vehicle Decay Protection plugin code as well as other plugins.

Note: Some of the classes inherit from each other. For example, RHIB inherits from MotorRowboat, and ScrapTransportHelicopter inherits from MiniCopter, so if you don't care which exact vehicle type the entity is, you can simply check for the parent class.

Ahh, so does that mean my existing plugin will cover ScrapTransportHelicopter and MotorRowboat? Would make sense given no-one has ever complained about those decaying... :)

So possibly just BaseSumbarine to do :D