Page 1 of 1

How to detect user clicked on alert?

Posted: Sun Apr 07, 2019 8:15 am
by jarcionek
I would like to know when user clicks on the alert to see it on the map, however I cannot find any way to achieve it.

It seems that there is no event fired for it. The only thing I have found is LuaPlayer.get_alerts() but it doesn't let me do anything other that say "yes, there is an alert".

There is LuaPlayer.render_mode so I could detect if the player's render mode has changed while alerts are showing, and if it was the case assume that it was because of player clicking on it. However, if player is already in the map view, render_mode will remain the same.