- /cheat all
- /cheat all
Code: Select all
/c script.on_event(defines.events.on_built_entity, function(event)
game.print(string.format("%s (%s)", event.entity.name, event.entity.quality.name))
end)
- place different quality on it
- notice both messages
Code: Select all
/c script.on_event(defines.events.on_robot_built_entity, function(event)
game.print(string.format("%s (%s)", event.entity.name, event.entity.quality.name))
end)
- watch a robot build it
- mark for upgrade to another quality via remote view
- watch a robot build it
- notice both messages
Code: Select all
/c script.on_event(defines.events.on_space_platform_built_entity, function(event)
game.print(string.format("%s (%s)", event.entity.name, event.entity.quality.name))
end)
- create space platform
- /editor
- give yourself 2 different qualites of a space-buildable entity
- put those two items in the hub
- /editor
- open remote view
- ghost the normal quality and watch it build
- place the other quality over the built entity and watch it build
- notice only one message