Lua in SpringRTS/Callins/UnitPreDamaged()

Return values
unitID, unitDefID, unitTeam, damage, paralyzer, weaponID, attackerID, attackerDefID, attackerTeam