Skip to content

OnFuelAmountCheck

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnFuelAmountCheck( EntityFuelSystem instance, Item fuelItem )
{
    Puts( "OnFuelAmountCheck works!" );
}

Location

  • EntityFuelSystem::GetFuelAmount()
csharp
public int GetFuelAmount()
{
	Item fuelItem = this.GetFuelItem();
	object returnvar = Interface.CallHook("OnFuelAmountCheck", this, fuelItem);
	if (returnvar is int)
	{
		return (int)returnvar;
	}
	if (fuelItem == null || fuelItem.amount < 1)
//---

Released under the MIT License.