OnRandomItemAward
Usage
- No return behavior
Example Autogenerated
csharp
private void OnRandomItemAward( )
{
Puts( "OnRandomItemAward works!" );
}
Location
- RandomItemDispenser::TryAward(RandomItemDispenser/RandomItemChance itemChance, BasePlayer forPlayer, UnityEngine.Vector3 distributorPosition)
csharp
private bool TryAward(RandomItemDispenser.RandomItemChance itemChance, BasePlayer forPlayer, Vector3 distributorPosition)
{
if (Interface.CallHook("OnRandomItemAward", this, itemChance, forPlayer, distributorPosition) != null)
{
return false;
}
float num = UnityEngine.Random.Range(0f, 1f);
if (itemChance.Chance >= num)
//---