81 void callModuleEvent(
int callingID,
int targetID,
string key,
string type,
string value);
106 void luaModuleOut(
int objID,
string key,
string value,
string optional_type);
202 void setVar(
string variableName,
string value);
218 string getVar(
string var);
264 void setTable(
string tableName, table);
388 void print(String text, optional
int singleLineState);
628 int id =
sky.getSelectedID();
void ui_clear()
Clears the simple console.
void restartGame()
restartGame(). restartGame() exit the game and restart the player for use with game player and end ga...
void ui_changeInterface(String workspace, String MyUI)
Prints the contents of the string text to the game overlay console.
int getGameState()
Call this function to return the current Game State. This function in the sky.library() is depreciate...
void getMouseDelta()
This function returns you the X and Y mouse move deltas calculated within the engine.
void include(String filename)
This will copy the contents of a lua script into the top of the current script inside lua...
void setVar(string variableName, string value)
This function is used when you require the service of a global variable. This variable will be availa...
int getSceneScriptID()
Returns the scene script ID.
void sky getDir_GameAssets()
return the compiled and ran game folder
string getVar(string var)
Receive the data stored in the global variable named var.
void printTable(table)
This function will print out to the console all of the table key:value Important: The table must cont...
string getTable(table)
Receive the data stored in the global table named table Important: The table must contain pairs of ke...
void sky getDir_GameRoot()
This will return the Root of the compiled game folder. Great for mods or save files.
void suppressErrors(int state)
Use this function as a performance helper. It stops all messages from being printed to the DOS Consol...
float3 raycastToCursor(float posx, float posy, float posz)
Cast a ray from the screen cursor to any object in 3D world space and return its position.
void loadScene(String sceneFileName)
Dynamically loads a scene.
void callGlobalFn(entityID, value)
Call this command to trigger all entities script globalFn() event.
void setTable(string tableName, table)
This function is used when you require the service of a global Table. This table will be available to...
void ui_setFontColor(|String color)
Sewts the font color for the simple console.
void setGameState(int gameState)
Call this function to change the current game state. This function in the sky.library() is depreciate...
void print(String text, optional int singleLineState)
Prints the contents of the string text to the game overlay console.
Definition: LUA_API_States.h:28
void lprint(string text)
Prints the content of the variable text to the console.
void trace()
A debugging function that will print a noticable line of text to the console. Very handy when followi...
void callModuleEvent(int callingID, int targetID, string key, string type, string value)
Call this command to send an event and data to a specified objects graph's "Lua Event" module...
void exitEnable(bool state)
Prevents the system from using the ESC key to close down the player.
Definition: LUA_API_Sky.h:27
int sceneScriptId
get scene script ID. getSceneId() gets the scene id for scnee script events scenes currently have a s...
Definition: LUA_API_Sky.h:639
void exit()
Exits the game.
void luaModuleOut(int objID, string key, string value, string optional_type)
Call this command to send data out of this lua module.
void loadSceneByTag(String sceneTagName)
Dynamically loads a scene through the use of a scene tag name.