]> git.somenet.org - factorio/some-corpsemarker.git/blob - control.lua
Code reformatted.
[factorio/some-corpsemarker.git] / control.lua
1
2 script.on_event(defines.events.on_pre_player_died, function(event)
3     local player = game.players[event.player_index]
4     player.force.add_chart_tag(player.surface, {position=player.position, text='Corpse: '..player.name..'; Time: '..math.floor(game.tick/60/60/60)..':'..(math.floor(game.tick/60/60)%60), icon={type="virtual",name="signal-info"}})
5 end)