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)
![Image](https://i.imgur.com/3c5oAXh.png)
Thanks for your help!
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)