OnAdventGiftAwarded
Usage
- No return behavior
Example Autogenerated
csharp
private void OnAdventGiftAwarded( AdventCalendar instance, BasePlayer player )
{
Puts( "OnAdventGiftAwarded works!" );
}
Location
- AdventCalendar::AwardGift(BasePlayer player)
csharp
//---
if (itemAmount.itemDef.IsAllowedInEra(EraRestriction.Loot))
{
player.GiveItem(ItemManager.CreateByItemID(itemAmount.itemid, Mathf.CeilToInt(itemAmount.amount), 0uL), BaseEntity.GiveItemReason.PickedUp);
}
}
Interface.CallHook("OnAdventGiftAwarded", this, player);
}