OnPlayerDig
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerDig( BasePlayer player, BaseDiggableEntity instance )
{
Puts( "OnPlayerDig works!" );
}
Location
- BaseDiggableEntity::Dig(BasePlayer player)
csharp
public virtual void Dig(BasePlayer player)
{
if (Interface.CallHook("OnPlayerDig", player, this) != null)
{
return;
}
if (this.digsRemaining == this.RequiredDigCount)
{
//---