RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

AI Module ReferenceBackwards Compatibility Module ReferenceBdebug Module ReferenceBdebugImpl Module ReferenceBeamstate Module ReferenceBullettime Module ReferenceController Module ReferenceDamageTracker Module ReferenceDrivetrain Module ReferenceElectrics Module ReferenceElectrics Custom Value ParserEnergyStorage Module ReferenceExtensions Module ReferenceFire Module ReferenceVehicle Engine True GlobalsGuihooks Module ReferenceGUI Streams Module ReferenceHTML Texture Module ReferenceHydros Module ReferenceInput Module ReferenceJBeam-Lua Integration GuideMapmgr Module ReferenceMaterial Module ReferenceBeamNG Math & Unit Conversions Referenceobj (Vehicle C++ Object)PartCondition Module ReferenceParticlefilter Module ReferenceParticles Module ReferencePowertrain Module ReferenceVehicle Property & Module TreeProps Module ReferenceProtocols Module ReferenceRecovery Module ReferenceScriptAI Module ReferenceSensors Module ReferenceSounds Module ReferenceStreams Module ReferenceThrusters Module Reference`v` (Vehicle Data & JBeam)Wheels Module Reference

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referenceve

Fire Module Reference

Module defined in `lua/vehicle/fire.lua`. Physics-based fire and thermal simulation. Fire can be triggered by high temperatures, collisions, or fuel tank ruptures.

Module defined in lua/vehicle/fire.lua. Physics-based fire and thermal simulation. Fire can be triggered by high temperatures, collisions, or fuel tank ruptures.

See Also

  • DamageTracker: For fire-related component failure.
  • EnergyStorage: For fuel tank interactions.

Interactions

  • Damage: Fire triggers damage events in damageTracker.
  • Energy: Fire consumes energy from energyStorage if a fuel tank is involved.
  • Electrics: Extreme heat can disable electrical systems.

State Fields

VariableDescription
debugDataTable containing internal fire simulation state for debugging.
flammableNodesMaster JBeam definition table for flammable nodes.
hotNodesSubset of nodes currently burning.

Public API

FunctionSignatureDescription
explodeNode(cid)Instant ignition/explosion of node.
explodeVehicle()Global vehicle explosion.
extinguishVehicle() / extinguishVehicleSlowly()Thermal resets or gradual chemical energy depletion.
getClosestHotNodeTempDistance(cid)Samples environmental heat from nearest fire. Returns multiple values.
igniteNode(cid, temp)Manual ignition triggers for specific nodes.
igniteRandomNode()Ignites a random flammable node at maximum temperature.
igniteRandomNodeMinimal()Ignites a random flammable node just above its flash point.
igniteVehicle()Triggers ignition across the entire vehicle.
init()Setup: cache container beams and identify vehicle center.
nodeCollision(p)Frictional heat application callback.
reset()State cleanup.
updateGFX(dt)Main loop: conduction, radiation, and particles.

Usage Example

fire.explodeNode(123)
fire.explodeVehicle()

Extensions Module Reference

Infrastructure for managing vehicle extensions, dependency resolution, and event hooking. This module allows for modular scripts to be loaded, unloaded, and updated at runtime, providing a flexible pl

Vehicle Engine True Globals

Global variables and functions available in the BeamNG vehicle Lua VM (VE context). These globals provide access to vehicle physics, data, UI communication, and inter-VM bridging to the Game Engine (G

On this page

See AlsoInteractionsState FieldsPublic APIUsage Example