[Added] Allow WorldThingDamaged to be called before WorldThingDied.

Moderator: Developers

Allow WorldThingDamaged to be called before WorldThingDied.

Postby Cacodemon345 » Tue May 15, 2018 9:33 am

WorldThingDamaged isn't called if an actor dies, so I would like it to be called before WorldThingDied. It would allow stuff like scoring behave properly.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151

Re: Allow WorldThingDamaged to be called before WorldThingDi

Postby _mental_ » Tue May 15, 2018 9:48 am

WorldThingDamaged event is triggered regardless of target life status.
The thing is WorldThingDied is triggered before WorldThingDamaged that does the final hit.
It looks more like a bug to me.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Allow WorldThingDamaged to be called before WorldThingDi

Postby _mental_ » Tue May 15, 2018 10:26 am

Here is pull request with the fix. Not the most elegant solution but still.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: Matt and 0 guests