EmptyEpsilon
EmptyEpsilon copied to clipboard
Damage info on callback
Additional parameters for using onTakingDamage in LUA scripts. (on_taking_damage on shipTemplateBasedObject)
This allows scripters to take actions based on damage type, damage on shield, damage on hull, frequency, sub system and which shield is hit if any. These informations are only available if an instigator exists on the DamageInfo.
Just thinking... wouldn't be better to put the callback before the actual damage applies ?