Syntax: Select all
def damage(vic_index, dmg_amount, atk_index=None, wpn_index=None, dmg_type=32, dmg_hitgroup=3):
try:
Entity(vic_index).take_damage(
damage=float(dmg_amount),
damage_type=int(dmg_type),
attacker_index=atk_index,
weapon_index=wpn_index,
hitgroup=int(dmg_hitgroup)
)
except ValueError:
__error__('Damage: Invalid argument (%s)' % dmg_amount)
When uses the function of that server just crashes. At older build the code worked fine