Page 1 of 1

Events for alerts?

Posted: Fri Nov 29, 2024 9:57 pm
by alu
Hi, I'm developing a add-on that's mostly based up reacting to when new alerts are triggered. These could be when a entity is damaged or when a custom alert from a programmable speaker triggers and alert. I've poured over the documentation but can't seem to find any events for these things. Am I missing something or isn't there events for these alerts?
Would kindly accept guidance or feedback of this matter.
Thanks,
alu

Re: Events for alerts?

Posted: Mon Dec 02, 2024 11:56 am
by alu
Answering myself here. Entity damaged have their own event(s), so I solved it by listening to those. As to other alerts I'm currently checking LuaPlayer::get_alerts with script.on_nth_tick, which might not be optimal but works.