OnEntityKill
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnEntityKill( BaseNetworkable instance )
{
Puts( "OnEntityKill works!" );
}
Location
- BaseNetworkable::Kill(BaseNetworkable/DestroyMode mode)
csharp
//---
if (this.IsDestroyed)
{
Debug.LogWarning("Calling kill - but already IsDestroyed!? " + ((this != null) ? this.ToString() : null));
return;
}
if (Interface.CallHook("OnEntityKill", this) != null)
{
return;
}
EntityProfiler.killed++;
if (EntityProfiler.mode >= 2)
//---