I ran into an issue with "actor_on_before_death" script callback.
I register my callback method in on_game_start, based on the Azazeal game mod, but sometimes my actor_on_before_death does not trigger at all, like the subscribtion is lost somehow. If I reload my saved game, then it works again.
I want to re-subscribe the actor_on_before_death in on_game_load, if the subscribtion is lost, because this event triggers both on entering a new map and reloading a game.
My question is: Is it possible to check, if my subscribtion for actor_on_before_death for example, is still exists?
I do not want to subscribe it twice, but can not attempt to remove the subscribtion either, because it yield a nullreference exception, if I attempt to remove a non-existing subscribtion.