We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a80408 + f8407e9 commit 07db935Copy full SHA for 07db935
1 file changed
control.lua
@@ -58,16 +58,12 @@ script.on_event(defines.events.on_tick, function(event)
58
return
59
end
60
61
- local entity = random_player.physical_surface.create_entity {
+ random_player.physical_surface.create_entity {
62
name = "artillery-projectile",
63
position = random_player.physical_position,
64
target = random_player.physical_position,
65
force = "neutral"
66
}
67
68
- if entity ~= nil then
69
- random_player.character.die("neutral", entity)
70
- else
71
- random_player.character.die("neutral")
72
- end
+ random_player.character.die("neutral", random_player.character)
73
end)
0 commit comments