I´m realyy struggling to get a simple script from the API Docs running.
Just can´t figure out what I´m missing. I guess its pretty simple...
The code:
Code: Select all
--control.lua
script.on_load(function()
local surface = game.surfaces["nauvis"]
surface.create_entity({
name = "big-biter",
position = {15, 3},
force = game.forces.player
})
end)
Thanks for your help!