Hi,
Found this thread about modal windows, here: [How-to] Modal Windows
And it involves registering and unregistering events for player. My question is whether the registered event will be unregistered automatically onDeath, consider this scenario from that thread above:
1. Player opens modal window (registering event)
2. Player is getting killed whilst having the window open
3. onModalWindow function is not being executed, which means it will not execute the player:unregisterEvent()
Found this thread about modal windows, here: [How-to] Modal Windows
And it involves registering and unregistering events for player. My question is whether the registered event will be unregistered automatically onDeath, consider this scenario from that thread above:
1. Player opens modal window (registering event)
2. Player is getting killed whilst having the window open
3. onModalWindow function is not being executed, which means it will not execute the player:unregisterEvent()