OnFuelCheck
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnFuelCheck( EntityFuelSystem instance )
{
Puts( "OnFuelCheck works!" );
}
Location
- EntityFuelSystem::HasFuel(bool forceCheck)
csharp
public bool HasFuel(bool forceCheck = false)
{
if (Time.time > this.nextFuelCheckTime | forceCheck)
{
object returnvar = Interface.CallHook("OnFuelCheck", this);
if (returnvar is bool)
{
return (bool)returnvar;
}
this.cachedHasFuel = ((float)this.GetFuelAmount() > 0f);
//---