API Referenceveextensionsscenario
Function Freezer
Overrides and freezes specified vehicle controller functions during scenarios. Prevents certain vehicle behaviors from being modified while a scenario defines its own rules.
Overrides and freezes specified vehicle controller functions during scenarios. Prevents certain vehicle behaviors (like ESC mode, transmission mode) from being modified while a scenario defines its own rules, ensuring consistent gameplay.
Hooks
| Hook | Description |
|---|---|
onExtensionLoaded | Begins overriding controller.freeze with the scenario-aware replacement. |
onExtensionUnloaded | Restores controller.freeze to its original behavior. |
onVehicleScenarioData | Parses the scenario configuration JSON to determine which functions to freeze. |
Usage Example
-- Loaded automatically by the scenario system
-- Scenario JSON defines what to freeze:
-- { "frozenFunctions": ["controller.setESCMode", "controller.setShiftMode"] }See Also
- Scenario Annotate — Scenario annotation markers
- Shift Booster — Scenario-specific shift boost
Scenario Annotate
Adds annotation markers and labels to the vehicle during scenarios. Used to display waypoint indicators, objective markers, and instructional overlays.
Shift Booster
Applies a temporary speed boost when the player shifts gears during scenarios. Rewards well-timed gear changes with a brief forward impulse.