VE Lua Documentation

Press F to search!

hasCouplers

Definition


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

local function hasCouplers(couplerTag)
  for _, val in pairs(couplerCache) do
    if (val.couplerWeld ~= true and val.couplerTag) and val.cid and (couplerTag == nil or val.couplerTag == couplerTag or val.tag == couplerTag) then
      return true
    end
  end

  return false
end

Callers