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