VE Lua Documentation

Press F to search!

clearNodeDebugText

Definition


-- @/lua/vehicle/bdebugImpl.lua:2692

-- Removes the text displaying at a node
-- "type" is the text group
-- "nodeCID" is the id of the node at runtime
local function clearNodeDebugText(type, nodeCID)
  local id = M.state.vehicle.nodeDebugTextTypeToID[type]
  if id then
    M.state.vehicle.nodeDebugTextModes[id].data[nodeCID] = nil
  end
  updateDebugDrawAndSendState()
end

Callers

@/lua/vehicle/bdebug.lua
-- "nodeCID" is the id of the node at runtime
local function clearNodeDebugText(type, nodeCID)
  local id = _state.vehicle.nodeDebugTextTypeToID[type]