forked from pyanodon/pyhightech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol.lua
More file actions
27 lines (22 loc) · 817 Bytes
/
control.lua
File metadata and controls
27 lines (22 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require "__pypostprocessing__.lib"
require "util"
py.on_event(defines.events.on_cutscene_cancelled, function(event)
if script.active_mods["pyalienlife"] then return end
game.surfaces["nauvis"].create_entity {
name = "crash-site-assembling-machine-1-repaired",
position = {-20, -7},
force = game.get_player(event.player_index).force
}
game.surfaces["nauvis"].create_entity {
name = "crash-site-assembling-machine-1-repaired",
position = {-12, 2},
force = game.get_player(event.player_index).force
}
end)
py.on_event(defines.events.on_tick, function(event)
local func_list = remote.call("on_nth_tick", "query", "pyht", event.tick)
for _, func in pairs(func_list) do
py.mod_nth_tick_funcs[func]()
end
end)
py.finalize_events()