BlackICE Scripting

custom type re

WorldInventoryCreated

re.WorldInventoryCreated

Raised when a loot container or drop gets its world inventory, linked to the entity. That happens when the first client near a container or a game-spawned drop claims it with its loot roll, or when a client drops items. A loot roll's items follow as Claimed changes in InventoryChanged, after approval in approval mode, so this is the place to add or replace loot through the Inventory API. For a player drop the items were already moved as Transfer changes, and the entity is created afterwards

Properties

PropertyTypeDescription
clientre.ClientIdThe client that rolled the loot or dropped the items
inventoryre.InventoryId
entityre.EntityIdThe container or drop entity the inventory is linked to