OnPlayerDrink
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerDrink( BasePlayer player, LiquidContainer instance )
{
Puts( "OnPlayerDrink works!" );
}
Location
- LiquidContainer::SVDrink(BaseEntity/RPCMessage rpc)
csharp
//---
{
if (!rpc.player.metabolism.CanConsume())
{
return;
}
if (Interface.CallHook("OnPlayerDrink", rpc.player, this) != null)
{
return;
}
foreach (Item current in base.inventory.itemList)
{
//---