EmptyEpsilon icon indicating copy to clipboard operation
EmptyEpsilon copied to clipboard

Damage info on callback

Open Tsht opened this issue 4 years ago • 1 comments

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.

Tsht avatar Dec 06 '20 14:12 Tsht

Just thinking... wouldn't be better to put the callback before the actual damage applies ?

Tsht avatar Jan 25 '21 23:01 Tsht