Introduction to Wicked Engine Scripting
masterWicked Engine uses Lua for scripting. You can execute Lua scripts by loading files or by using the engine's scripting console, known as the BackLog.
- Startup Script: The engine automatically attempts to load a file named
startup.luafrom the application's root directory upon startup. You can use this file for initial logic like loading content. - BackLog (Scripting Console): Press the
HOMEkey to open the BackLog interface. Enter Lua commands and pressENTERto execute them. PressHOMEagain to exit. You can also use thedofilecommand within the BackLog to execute script files. - Object Inspection: You can inspect the properties and functionality of any object by calling
getprops(YourObject)in the BackLog.