VE Lua Documentation

Press F to search!

couplerFound

Definition


-- @/lua/vehicle/beamstate.lua:374

local function couplerFound(nodeId, obj2id, obj2nodeId)
  --print(string.format("coupler found %s.%s->%s.%s", obj:getId(), nodeId, obj2id, obj2nodeId))
end

Callers

@/lua/vehicle/main.lua
  -- print('couplerFound'..','..nodeId..','..obj2nodeId..','..obj2id)
  beamstate.couplerFound(nodeId, obj2id, obj2nodeId, nodeDist)
  controller.onCouplerFound(nodeId, obj2id, obj2nodeId, nodeDist)