When Prop is Picked Up
Fires when a player picks up a prop that the spawner created.
Introduction
When Prop is Picked Up is an event in the Prop Spawner group of World Events. It fires when a player picks up a prop that the spawner created. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Use it when you want something to happen automatically as soon as a prop is picked up. This event belongs to the Prop Spawner component. Open the Prop Spawner component guide to see everything the component itself can do. Prop spawners run a full life cycle: an item appears through When Prop is Added , waits through When Prop Refreshes cycles, and this event fires the moment a player grabs it. Items that can be used in hand connect to When Prop is Used and the Hand Prop guide. When Prop is Picked Up event in the World Editor Image The When Prop is Picked Up event in the Script Editor. caption
Parameters
Player the player who picked up the prop Parameter Description
How to Access
How to Access - Event When Prop is Picked Up
How to Use
Select the object, press Propertie (the blue equalizer icon) in the bottom action menu, and scroll to the bottom of the properties panel. Press Add Component and pick the Prop Spawner component; its block stacks below the existing properties with the When Prop Is Picked Up event inside it. Press the + button below the event to add a script, then press Edit on that script to open the script editor and build the actions that should run when the event fires. Press Play and pick up the spawned prop, then check that the actions run.
Example
When Prop is Picked Up: Execute Player.Player Play Audio Audio, Volume 100 when-prop-is-picked-up-example.png Plays a sound for the player the moment they pick up the spawned prop. caption
Common Uses
Add the item to the player's inventory Play a pickup sound or a particle effect Add score or count collected items on a scoreboard
Tip
Pair it with When Prop Refreshes so the spawner reacts the moment its prop is taken.