VE Lua Documentation

Press F to search!

hidePropsInBreakGroup

Definition


-- @/lua/vehicle/props.lua:52

local function hidePropsInBreakGroup(breakGroup)
  if breakGroupMap[breakGroup] then
    for _, prop in ipairs(breakGroupMap[breakGroup]) do
      if not (prop.hidden and prop.disabled) then
        -- log('D', "props.hidePropsInBreakGroup", "prop hidden: ".. tostring(breakGroup))
        prop.disabled = true
        prop.hidden = true
        updateProp(0, prop)
      end
    end
    breakGroupMap[breakGroup] = nil
  end
end

Callers

@/lua/vehicle/beamstate.lua
  -- hide props if they use
  props.hidePropsInBreakGroup(g)
          if breakGroupCache[g] then
            props.hidePropsInBreakGroup(g)
          if breakGroupCache[g] then
            props.hidePropsInBreakGroup(g)