When Speed Up
Fires while the driver presses the gas.
Introduction
When Speed Up is an event in the Vehicle group of World Events. It fires while the driver presses the gas. 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 full-throttle flavor: a rising engine pitch, speed lines, or boost counters that fill while the pedal is down. When it fires, the event hands one value to your script: player, the player this moment belongs to. This event belongs to the Vehicle component. Open the Vehicle component guide to see everything the component itself can do. Speed is the outcome of every pedal input: this event reacts to velocity changes fed by When Pressing the Pedal and When Releasing the Pedal , while drifting sideways is caught by When Sliding . Acceleration curves and top speed live in the Vehicle Asset guide. When Speed Up event in the Uni editor Image The When Speed Up event in the Script Editor.
Parameters
Player the player driving the vehicle Parameter Description
How to Access
How to Access - Event When Speed Up
How to Use
Select the vehicle in the World Editor and open its Propertie (the blue equalizer icon), then scroll to the Vehicle section — the When Speed Up event is already listed there under Vehicle Events. 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, drive the vehicle and press the gas, then check that the actions run while speeding up.
Example
When Speed Up: Execute Player Camera.Current Camera.Camera.Camera shake Mode 6D Shake Intensity 0.2 Speed 1 when-speed-up-example.png Shakes the driver's camera with a 6D shake while the vehicle accelerates. caption
Common Uses
Rising engine sounds Speed lines and wind effects Boost or nitro charging
Tip
This event follows the pedal, not the speedometer. Pair it with When Sliding to cover both gas on and gas off.