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