Writing a mod to put spidertron names on the map. Using;
Code: Select all
-- control.lua script.on_event( defines.events.on_entity_renamed, function(event) game.print( "got rename" ) end)
2. What happened?
The print didn't occur. However, when naming e.g. a train station it does work.
3. What did you expect?
I expect the event to be fired when renaming a spidertron.
P.S. Are there other entities that can be renamed besides spidertron and train stations?