custom_type and event for alert
Posted: Tue Feb 08, 2022 7:59 am
Alert now have member: custom_type::string
new event:defines.events.on_player_clicked_alert
- The custom type of alert,or nil if it is not specify
- when not specify,default to nil.
new event:defines.events.on_player_clicked_alert
- Called when a player clicked a alert group.
- Fields:
- player_index
:: uint
The player who clicked a alert. - alerts
:: array[Alert]
The Alert group player clicked - name
:: defines.events
Identifier of the event - tick
:: uint
- player_index