OnPlayerKeepAlive
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerKeepAlive( BasePlayer instance, BasePlayer player )
{
Puts( "OnPlayerKeepAlive works!" );
}
Location
- BasePlayer::RPC_KeepAlive(BaseEntity/RPCMessage msg)
csharp
//---
}
if (!this.IsWounded())
{
return;
}
if (Interface.CallHook("OnPlayerKeepAlive", this, msg.player) != null)
{
return;
}
this.ProlongWounding(10f);
}