it came to artificial intelligence! Two days of trying to create a simple and extensible AI and I think I did it!
I will post in this thread my progress.
this is only the beginning.
dofile("Base.lua");
dofile("../../Asset Library/Scripts/Base.lua");
dofile("Assets/Scripts/Base.lua");
sky.include("myscript.lua")
Seek, Flee, Evade, Pursue, Arrive & Follow
f= loadfile("mylua.lua");
f();
Another way of thinking of this is; that it just adds the contents of the lua script you are including into the script you need to reference, so the functions/variables are directly accessible.
the "sky.include()" function which replaces dofile() has been added, tested and will be in the next release, yes
Users browsing this forum: No registered users and 1 guest