Events: on_entity_damaged and on_entity_repaired
Posted: Sun Sep 20, 2015 5:03 pm
Could possibly be a single event with negative damage for repairs, but it would certainly make a few more things possible.
Probably would have (beyond the basic event stuff):
Probably would have (beyond the basic event stuff):
- event.entity -- the entity that was just damaged/repaired
- event.damage -- the amount of damage that was just dealt
- event.damage_source -- the entity that dealt the damage/did the repair, if one exists