When Interaction End
Fires when a player leaves the device after interacting with it.
Introduction
When Interaction End is an event in the Device group of World Events. It fires when a player leaves the device after interacting with it. When it fires, the event hands one value to your script: player, the player who left the device. 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 Device component. Open the Device component guide to see everything the component itself can do. Every conversation needs an ending: this event completes the usage started by When Interaction Starts , making it the right place to hand out rewards or close menus. The quick alternative for single presses is When Interact Button Clicked , and item handouts tie into When Prop is Picked Up . When Interaction End event in the World Editor Image The When Interaction End event in the Script Editor. caption
Parameters
Player the player who stopped interacting with the device Parameter Description
How to Access
How to Access - Event When Interaction End
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 Device component; its block stacks below the existing properties with the When Interaction End 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 end the device interaction, then check that the actions run.
Example
When Interaction End: Execute Player.Controlled Character.Character.Respawn when-interaction-end-example.png Respawns the interacting player's character when the interaction ends. caption
Common Uses
Deliver the reward after a channeling action completes Close progress bars and restore player movement Log how long the interaction took
Tip
Combine it with When Interaction Start to measure or animate the full interaction.