Code: Select all
script.on_event(defines.events.on_picked_up_item, function(event)
local player = game.get_player(event.player_index)
player.print("Item picked up.")
end)
Code: Select all
script.on_event(defines.events.on_picked_up_item, function(event)
local player = game.get_player(event.player_index)
player.print("Item picked up.")
end)