When Prop Is Used (Melee Weapon)
Fires the moment the weapon is swung.
Introduction
When Prop Is Used is an event in the Melee Weapon group of World Events. It fires the moment the weapon is swung. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Use it for swing feedback that plays no matter what the swing hits: the whoosh, the arm animation, the stamina tick. This event belongs to the Melee Weapon component. Open the Melee Weapon component guide to see everything the component itself can do. Swinging a melee weapon is a promise: this event fires on every swing, When Melee Hit reports the targets actually struck, and When Melee Critical Hit flags the big ones. The counterpart system for distance combat starts at When Weapon Fires , and swing speed plus damage ranges live in the Melee Weapon guide. When Prop Is Used event in the Uni editor Image The When Prop Is Used event in the Script Editor.
Parameters
Player the player swinging the weapon Parameter Description
How to Access
How to Access - Event When Prop Is Used
How to Use
Select the weapon 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 swing the melee weapon, then check that the actions run.
Common Uses
Swing sounds and motion trails Drain stamina per swing Count swings for combos
Tip
When Prop Is Used fires even when nothing is hit. Put damage reactions in When Weapon Hits instead, or they will play on empty air.