When Shaking Starts
Fires when an unstable object starts shaking, the warning moment before it breaks or changes.
Introduction
When Shaking Starts is an event in the Unstable group of World Events. It fires when an unstable object starts shaking, the warning moment before it breaks or changes. 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 the object starts shaking. This event belongs to the Unstable component. Open the Unstable component guide to see everything the component itself can do. Shaking is the warning before the fall: this event gives players a moment to react, and what follows is either When Object Restores or a full collapse into When Destroyed . Shake duration and wobble intensity are configured in the Unstable component guide. When Shaking Starts event in the World Editor Image The When Shaking Starts event in the Script Editor. caption
Parameters
None This event has no parameters. The event fires on its own and everything you need is the object running this script. Parameter Description
How to Access
How to Access - Event When Shaking Starts
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 Unstable component; its block stacks below the existing properties with the When Shaking Starts 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 step onto the unstable object and let it shake, then check that the actions run.
Example
When Shaking Starts: Execute System Environment.Play Spatial Audio Audio 8bit Story, Position Self, Volume 100 when-shaking-starts-example.png Plays a spatial audio warning the moment the object starts shaking. caption
Common Uses
Warn players with a sound or a camera shake Give players time to escape a collapsing platform Start a countdown effect before the object breaks
Tip
Treat shaking as a warning window: the actions you connect run before the object's state actually changes.