Nitrous Oxide Injection

Summary

The nitrous oxide injection controller is used to control a nitrous oxide system.


File Info

Filename nitrousOxideInjection.lua
Path /lua/vehicle/controller/nitrousOxideInjection.lua
Type Auxiliary
Usage type Multiple

JBeam Properties

string
type
The name of this instance of the nitrous oxide controller.
Multiple controllers are possible with different names, but it is not recommended. Usually multiple bottles are instead bound to the same controller.
string
type
nitrousOxideArm
default
The name of the electrics that get activated when the system is armed.
Should match the value set-up in the nitrous powertrain element.
string
type
nitrousOxideOverride
default
The name of the electrics that get activated when the nitrous over-ride is active.
Should match the value set-up in the nitrous powertrain element.
number
type
1
default
How long (in seconds), the purge will be active when arming the nitrous system.
string
type
mainEngine
default
The name of the engine that is affected by the nitrous oxyde controller.


Public Functions

Function name
Parameters
Description
Function name
setOverride
Parameters
active
Description
Activates the nitrous override
Function name
toggleActive
Parameters
Description
Arms or disarms the system, and runs the nitrous purge when arming.
Function name
serialize
Parameters
Description
Sends a package of settings that should stay as-is when reloading physics.
Function name
deserialize
Parameters
Description
Receives the package of settings that was previously serialized after reloading physics and reapplies them.

Example Usage

"controller": [
    ["fileName"],
    ["nitrousOxideInjection", {}],
],

Last modified: 8/8/2023 12:59

Any further questions?

Join our discord