API ReferenceGE Extensionstech
`utils.lua`
> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.
This Source Code Form is subject to the terms of the bCDDL, v. 1.1. If a copy of the bCDDL was not distributed with this file, You can obtain one at http://beamng.com/bCDDL-1.1.txt
Module variable: M
Hooks
onUpdateonVehicleSpawnedonVehicleDestroyedonVehicleReplacedonExtensionLoadedonClientPreStartMissiononClientPostStartMissiononClientStartMissiononClientEndMission
Exported Functions
M.onUpdate(dtReal, dtSim, dtRaw)
Line 26
M.onVehicleSpawned(vid, veh)
Line 193
M.onVehicleDestroyed(vid)
Line 205
M.onVehicleReplaced(vid, veh)
Line 211
M.onExtensionLoaded()
Line 223
M.onClientPreStartMission(levelPath)
Line 178
M.onClientPostStartMission(levelPath)
Line 178
M.onClientStartMission(levelPath)
Line 178
M.onClientEndMission()
Line 188
M.toggleLidar()
Line 61
M.toggleAnnotations()
Line 100
M.toggleUltrasonic()
Line 119
M.toggleSecondView()
Line 228
M.toggleVehicleSystemsCoupling()
Line 256
Returns: M
Exported Variables
M.dependencies
{ "core_camera", "tech_license", "tech_sensors" }
M.secondViewOutput
Current second view output index (default 0).
M.onDeserialize
true - enables deserialization support.
Internal Functions
Show internal functions
isLevelValid()(line 12)updateUI(message, permanent)(line 21)onUpdate(dtReal, dtSim, dtRaw)(line 26)toggleLidar()(line 61)toggleAnnotations()(line 100)toggleUltrasonic()(line 119)disableAll()(line 172)onLevel(levelPath)(line 178)onClientEndMission()(line 188)onVehicleSpawned(vid, veh)(line 193)onVehicleDestroyed(vid)(line 205)onVehicleReplaced(vid, veh)(line 211)onExtensionLoaded()(line 223)toggleSecondView()(line 228)toggleVehicleSystemsCoupling()(line 256)