VE Lua Documentation

Press F to search!

disablePropsInDeformGroup

Definition


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

local function disablePropsInDeformGroup(deformGroup)
  if deformGroupMap[deformGroup] then
    for _, prop in ipairs(deformGroupMap[deformGroup]) do
      if not prop.disabled then
        prop.disabled = true
        prop.hidden = true
        updateProp(0, prop)
      end
    end
    deformGroupMap[deformGroup] = nil
  end
end

Callers

@/lua/vehicle/material.lua
    --log('D', "material.switchBrokenMaterial", "mesh broke: "..g.mesh.. " with deformGroup " .. g.deformGroup)
    props.disablePropsInDeformGroup(g.deformGroup)
    local dm = deformMeshes[g.deformGroup]