[Solved] Question about LuaPlayer::add_custom_alert()

Place to get help with not working mods / modding interface.
Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

[Solved] Question about LuaPlayer::add_custom_alert()

Post by Schallfalke »

Want to ask what parameter entity in LuaPlayer::add_custom_alert does?

Code: Select all

add_custom_alert(entity, icon, message, show_on_map)
Adds a custom alert to this player.
Parameters
  entity :: LuaEntity
  icon :: SignalID
  message :: LocalisedString
  show_on_map :: boolean
I know what other three do, but I have no idea what entity does (no description in doc).
I put whatever entity to it and still works without noticeable difference.
Last edited by Schallfalke on Fri Feb 14, 2020 11:33 am, edited 1 time in total.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Question about LuaPlayer::add_custom_alert()

Post by Klonan »

Schallfalke wrote:
Fri Feb 14, 2020 11:11 am
Want to ask what parameter entity in LuaPlayer::add_custom_alert does?

Code: Select all

add_custom_alert(entity, icon, message, show_on_map)
Adds a custom alert to this player.
Parameters
  entity :: LuaEntity
  icon :: SignalID
  message :: LocalisedString
  show_on_map :: boolean
I know what other three do, but I have no idea what entity does (no description in doc).
I put whatever entity to it and still works without noticeable difference.
If you click the alert it will open the map at that entity


Post Reply

Return to “Modding help”