custom type re
WorldInventoryCreated
re.WorldInventoryCreated
- 3 properties
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
| Property | Type | Description |
|---|---|---|
client | re.ClientId | The client that rolled the loot or dropped the items |
inventory | re.InventoryId | |
entity | re.EntityId | The container or drop entity the inventory is linked to |