EXTERNAL FUNCTIONS
External functions are functions stored outside of Cash_Out's scripting system, in .dll files. Using the scripting system, they can be called to expand the functionality of the scripting system.


"variable = add_function(file, function name, return type, argument 1 type, argument 2 type, argument 3 type, argument 4 type)"


This will store the function in memory, to be used by other scripts and functions...

Argument Function
File The .dll file to be loaded into the system, found in the external folder.
Function Name The real name of the function, found inside of the .dll file.
Return Type The data type that will be returned to the script when the function is called. (For double use "REAL", for char* use "STRING")
Argument 1 Type The data type that will be sent to the function for argument 1 when the function is called. (For double use "REAL", for char* use "STRING", leave as "NONE" if this argument is not being used.)
Argument 2 Type The data type that will be sent to the function for argument 2 when the function is called. (For double use "REAL", for char* use "STRING", leave as "NONE" if this argument is not being used.)
Argument 3 Type The data type that will be sent to the function for argument 3 when the function is called. (For double use "REAL", for char* use "STRING", leave as "NONE" if this argument is not being used.)
Argument 4 Type The data type that will be sent to the function for argument 4 when the function is called. (For double use "REAL", for char* use "STRING", leave as "NONE" if this argument is not being used.)



When editing the external function in the authoring tools, the tool will look like this...




Using the test button will allow you to verify if the external function works and is set up properly.
If the system returns an error during setup, the file doesn't exist, or the function inside the file doesnt exist.