VE Lua Documentation

Press F to search!

getImpactDeformEnergyNode

Definition


-- @/=[C]:-1
function getImpactDeformEnergyNode(...)

Callers

@/lua/vehicle/sounds.lua
    crashSoundTimer = 0
    local impactEnergy, breakEnergy, breakNode, mat1, mat2 = obj:getImpactDeformEnergyNode()
    -- if not (scrapeAbsorbing[mat1] or scrapeAbsorbing[mat2]) then // removed because it was stopping some small impacts from happening as the system thinks it's a scrape