Entity.take_damage question
Posted: Tue May 03, 2016 5:35 am
Hey there
I've got attacker's Player entity, but I don't want his active weapon to go into TakeDamageInfo, I want to see skull and crossbones in the killfeed. However, if I pass None as a weapon_index, Entity.take_damage automatically fills in my attacker's active weapon.
I tried setting weapon_index to WORLD_ENTITY_INDEX, but then there's no damage inflicted at all.
What can I do besides building TakeDamageInfo manually and using Entity.on_take_damage instead?
Thanks
I've got attacker's Player entity, but I don't want his active weapon to go into TakeDamageInfo, I want to see skull and crossbones in the killfeed. However, if I pass None as a weapon_index, Entity.take_damage automatically fills in my attacker's active weapon.
I tried setting weapon_index to WORLD_ENTITY_INDEX, but then there's no damage inflicted at all.
What can I do besides building TakeDamageInfo manually and using Entity.on_take_damage instead?
Thanks