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) · 754 Bytes
/
control.lua
File metadata and controls
27 lines (22 loc) · 754 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 "__core__/lualib/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.players[event.player_index].force
}
game.surfaces["nauvis"].create_entity {
name = "crash-site-assembling-machine-1-repaired",
position = {-12, 2},
force = game.players[event.player_index].force
}
end)
remote.add_interface("pyht", {
---@param func string
execute_on_nth_tick = function(func)
py.mod_nth_tick_funcs[func]()
end
})
py.finalize_events()