GE Lua Documentation

Press F to search!

getTextualCollisionDamageLocations

Definition


-- @/lua/ge/extensions/gameplay/util/damageAssessment.lua:403

-- used to know where an impact happened
local function getTextualCollisionDamageLocations(data)
  return getTextualDamageLocationsByType(data, "sectionCollisionDamage")
end

Callers

@/lua/ge/extensions/gameplay/util/crashDetection.lua
  if crashData.crashSettings.enableImpactLocationData then
    crashData.currentImpactData.damageStateDiff = gameplay_util_damageAssessment.getTextualCollisionDamageLocations({oldSectionsDamageRaw = crashData.currentImpactData.startingDamageState, vehId = crashData.vehId})
  end