When Prop Is Used (Hand Prop)
Fires the moment the hand prop is used with the use button.
Introduction
When prop is used is an event in the Hand Prop group of World Events. It fires when a player presses the use button while holding the prop, turning a held item into an interactive tool. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. This event belongs to the Hand Prop asset. Open the Hand Prop guide to see everything the asset itself can do. Using a held prop is where pickup becomes gameplay: after the item is grabbed through When Prop is Picked Up , this event fires on every use - and its limits, cooldown, and animations are configured through the Hand Prop guide. Props that deal damage instead hand off to When Melee Hit . When Prop Is Used event in the Uni editor Image The When Prop Is Used event in the Script Editor.
Parameters
Player the player who used the hand prop Parameter Description
How to Access
How to Access - Event When Prop Is Used
How to Use
Select the hand prop in the right panel , then click its Propertie (the blue equalizer icon) and scroll to the bottom of the properties panel ? the When Prop Is Used event is already listed there. 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 use the hand prop, then check that the actions run.
Example
When prop is used: Set Player Player Var.Swing Count Add 1 when-melee-used-example.png Adds 1 to the player's swing count variable with every swing. caption
Common Uses
Tool actions: spray, hammer, flashlight, magnifier Custom interactions for quest items
Tip
Use When Prop Is Used for deliberate use-button actions; swing feedback like whoosh and arm animation belongs to the melee events.