Skip to content

OnBonusItemDropped

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnBonusItemDropped( Item item, BasePlayer basePlayer )
{
    Puts( "OnBonusItemDropped works!" );
}

Location

  • LootContainer::DropBonusItems(BaseEntity initiator, ItemContainer container)
csharp
//---
					(item.Drop(this.GetDropPosition() + new Vector3(0f, 0.5f, 0f), this.GetInheritedDropVelocity(), default(Quaternion)) as DroppedItem).DropReason = DroppedItem.DropReasonEnum.Loot;
				}
			}
		}
	}
	Interface.CallHook("OnBonusItemDropped", item, basePlayer);
}

Released under the MIT License.