When Interaction Start
Fires when a player starts interacting with this device.
Introduction
When Interaction Start is an event in the Device group of World Events. It fires when a player starts interacting with this device. When it fires, the event hands one value to your script: player, the player who started the interaction. 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. Device interactions are conversations: this event opens one when a player starts using the device, and When Interaction Ends closes it. For the simple one-shot version, compare with When Interact Button Clicked . Devices that dispense items usually connect to the prop system, starting from When Prop is Picked Up . When Interaction Start event in the World Editor Image The When Interaction Start event in the Script Editor. caption
Parameters
Player the player who started interacting with the device Parameter Description
How to Access
How to Access - Event When Interaction Start
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 Start 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 start the device interaction, then check that the actions run.
Example
When Interaction Start: Execute Player.Controlled Character.Character.Jump when-interaction-start-example.png Makes the interacting player's character jump the moment the interaction starts. caption
Common Uses
Start a channeling or charging animation Show a progress bar while the interaction runs Lock player movement during a long interaction
Tip
Pair it with When Interaction End to track the full length of the interaction.