TombEngine 1.0.1 scripting interface
+TombEngine 1.0.2 scripting interface
Welcome to the TombEngine scripting API. This is a work in progress and some information might be wrong or outdated. Please also note that this is primarily a reference document, not a tutorial, so expect descriptions to be fairly sparse.
At the time of writing, there is a tutorial describing the basics of Lua, as well as a number of example scripts, on the wiki here.
@@ -90,7 +90,7 @@ For example, to call GetMoveableByName, you would have to do:local door = TEN.Objects.GetMoveableByName("door_type4_14")
To save on typing, you can put the following at the start of a Lua file:
-local Util = require("Util")
+local Util = require("Engine.Util")
Util.ShortenTENCalls()
This will put the modules and classes in the global table. In other words, it means you can do the following:
@@ -248,7 +248,7 @@ Util.ShortenTENCalls()