OnPlayerRevive
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerRevive( BasePlayer fromPlayer, BasePlayer instance )
{
Puts( "OnPlayerRevive works!" );
}Location
- BasePlayer::OnMedicalToolApplied(BasePlayer fromPlayer, ItemDefinition itemDef, ItemModConsumable consumable, MedicalTool medicalToolEntity, bool canRevive)
csharp
public virtual void OnMedicalToolApplied(BasePlayer fromPlayer, ItemDefinition itemDef, ItemModConsumable consumable, MedicalTool medicalToolEntity, bool canRevive)
{
if ((fromPlayer != this && this.IsWounded()) & canRevive)
{
if (Interface.CallHook("OnPlayerRevive", fromPlayer, this) != null)
{
return;
}
this.StopWounded(fromPlayer);
}
//---