Loot
Loot(
props):Element|null
A stack of an item on the entity, which the nearest of its targets
whose body reaches it takes into the target’s bag, by default a
character a player controls now; what no bag can take stays. It draws
the model the item names, or a glowing gem in the item’s colour, as
LootTrait’s registered view, which a view of the entity’s own
replaces. With an id it stays taken across reloads.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
LootProps |
Returns
Section titled “Returns”Element | null