Pickup
Pickup(
props):null
A reward a player’s character takes by walking within radius of
its entity, such as a coin: the room adds reward coins to her wallet,
emits TakenEvent on the entity and destroys it, so a taken pickup
never comes back by itself. Import it from @spawnite/engine and put
it inside an Entity, <Entity position={[0, 0.5, -3]}><Pickup reward={1} /></Entity>; it draws nothing itself, and needs behaviours() in the
game’s plugins. Pickup is its guide.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
PickupProps |
Returns
Section titled “Returns”null