VE Lua Documentation

Press F to search!

updateRemoteElectrics

Definition


-- @/lua/common/luaCore.lua:41

function nop()
end

Callers

@/lua/vehicle/beamstate.lua
--"retainReceivedElectrics" param is chosen in this particular way to maintain backwards compat with possible other code not under our control
local function updateRemoteElectrics(retainReceivedElectrics)
  for i = 1, #recievedElectrics do
@/lua/vehicle/electrics.lua
  -- inject imported electrics events first time, this needs to happen twice overall so that code between gfx first step and gfx second step can see these updated electrics
  beamstate.updateRemoteElectrics(true)
  -- inject imported electrics events second time, this should be the last step before update electrics by ignition state so that we can override everything if needed
  beamstate.updateRemoteElectrics(false)