OnAdventGiftAwarded
Usage
- No return behavior
Example Autogenerated
csharp
private void OnAdventGiftAwarded( AdventCalendar instance, BasePlayer player )
{
Puts( "OnAdventGiftAwarded works!" );
}
Location
- AdventCalendar::AwardGift(BasePlayer player)
csharp
//---
for (int i = 0; i < dayReward.rewards.Length; i++)
{
ItemAmount itemAmount = dayReward.rewards[i];
player.GiveItem(ItemManager.CreateByItemID(itemAmount.itemid, Mathf.CeilToInt(itemAmount.amount), 0uL), BaseEntity.GiveItemReason.PickedUp);
}
Interface.CallHook("OnAdventGiftAwarded", this, player);
}