OnDispenserBonusReceived
Usage
- No return behavior
Example Autogenerated
csharp
private void OnDispenserBonusReceived( ResourceDispenser instance, BasePlayer player, Item item )
{
Puts( "OnDispenserBonusReceived works!" );
}
Location
- ResourceDispenser::AssignFinishBonus(BasePlayer player, float fraction, AttackEntity weapon)
csharp
//---
if (returnvar is Item)
{
item = (Item)returnvar;
}
Facepunch.Rust.Analytics.Azure.OnGatherItem(item.info.shortname, item.amount, base.baseEntity, player, weapon);
Interface.CallHook("OnDispenserBonusReceived", this, player, item);
player.GiveItem(item, BaseEntity.GiveItemReason.ResourceHarvested);
}
}
}
}