API ReferenceGE Extensionsflowgraphnodesvehicle
Boost Vehicle
- **Node Name:** `Boost Vehicle`
Overview
- Node Name:
Boost Vehicle - Category:
repeat_p_duration - File:
extensions/flowgraph/nodes/vehicle/boost.lua - Obsolete: Unknown working status; use the "Apply Velocity" node instead.
Applies a forward boost force to a vehicle using the core_booster extension.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
vehId | number | Vehicle ID to boost. Uses player vehicle if empty. |
power | number | Power of the boost force. |
Internals
Key Methods
| Method | Description |
|---|---|
init() | Sets loaded = false. |
_executionStopped() | Resets loaded = false. |
work() | Lazily loads the core_booster extension on the vehicle, then applies boost each frame. |
How It Works
- On first
work(), loads thecore_boosterextension on the vehicle viaextensions.load("core_booster"). - Each subsequent frame, calls
core_booster.boost({power, 0, 0}, dtSim)on the vehicle. - The boost is applied along the vehicle's local X-axis with the given power, scaled by simulation delta time.
⚠️ Obsolete: This node has unknown working status. The "Apply Velocity to Vehicle" node (
thrusters.applyVelocity) is the recommended alternative.
Usage Example
-- Flowgraph:
-- [Hold Boost Key] → [Boost Vehicle (power=500)] → vehicle accelerates
-- Equivalent vehicle-side calls:
extensions.load("core_booster")
core_booster.boost({500, 0, 0}, dt)
-- Preferred alternative (Apply Velocity node):
thrusters.applyVelocity(directionVec)Key Dependencies
core_booster- vehicle-side booster extension (may not exist on all builds)extensions.load()- dynamic extension loadermgr.dtSim- simulation delta time from flowgraph manager
See Also
- Align for Coupling (Flowgraph Node) - Related reference
- Apply Velocity to Vehicle (Flowgraph Node) - Related reference
- Set Vehicle Colors (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide