When Releasing the Pedal
Fires when the pedal changes to the raised state.
Introduction
When Releasing the Pedal is an event in the Pedals group of World Events. It fires when the pedal changes to the raised state. When it fires, the event hands one value to your script: Object, the object that stepped off the pedal. 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 Pedal component. Open the Pedal component guide to see everything the component itself can do. Letting go is half of driving: this event completes every press reported by When Pressing the Pedal , and the speed changes in between arrive through When Speed Up . Riders who bail mid-drive are reported by When Player Gets Off , and braking curves are tuned in the Vehicle Asset guide. When Releasing the Pedal event in the World Editor Image The When Releasing the Pedal event in the Script Editor. caption
Parameters
Object the object that triggered the pedal Parameter Description
How to Access
How to Access - Event When Releasing the Pedal
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 Pedals component; its block stacks below the existing properties with the When Releasing The Pedal 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 off the pedal, then check that the actions run.
Example
When releasing the pedal by Object in Event: Set Group.Is Active Change To False when-releasing-the-pedal-example.png Hides the platform again by deactivating the group when the pedal is released. caption
Common Uses
Hide the platform again to force the team to plan their timing Close a gate or stop a machine when the pedal is released Reset the pressure plate puzzle back to its idle state
Tip
Think of the pair as on and off: When Pressing the Pedal starts the effect, this one stops it.