OnHealingItemUse
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnHealingItemUse( MedicalTool instance, BasePlayer player )
{
Puts( "OnHealingItemUse works!" );
}
Location
- MedicalTool::GiveEffectsTo(BasePlayer player)
csharp
//---
if (!component)
{
Debug.LogWarning("No consumable for medicaltool :" + base.name);
return;
}
if (Interface.CallHook("OnHealingItemUse", this, player) != null)
{
return;
}
BasePlayer ownerPlayer = base.GetOwnerPlayer();
Facepunch.Rust.Analytics.Azure.OnMedUsed(ownerItemDefinition.shortname, ownerPlayer, player);
//---