Events for alerts?

Place to get help with not working mods / modding interface.
alu
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Nov 29, 2024 9:51 pm
Contact:

Events for alerts?

Post 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
alu
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Nov 29, 2024 9:51 pm
Contact:

Re: Events for alerts?

Post 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.
Post Reply

Return to “Modding help”