OnLiquidVesselFill
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnLiquidVesselFill( BaseLiquidVessel instance, BasePlayer ownerPlayer, LiquidContainer facingLiquidContainer )
{
Puts( "OnLiquidVesselFill works!" );
return null;
}Location
- BaseLiquidVessel::FillCheck()
csharp
//---
return;
}
float f = (Time.realtimeSinceStartup - lastFillTime) * fillMlPerSec;
Vector3 pos = ownerPlayer.transform.position - new Vector3(0f, 1f, 0f);
LiquidContainer facingLiquidContainer = GetFacingLiquidContainer();
if (Interface.CallHook("OnLiquidVesselFill", this, ownerPlayer, facingLiquidContainer) != null)
{
return;
}
if (facingLiquidContainer == null && CanFillFromWorld())
{
//---