Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Modding (AngelScript)

Arnis Lielturks edited this page Jul 3, 2018 · 3 revisions

AngelScript scripts (mods)

All the functionality can be extended by using additional scripts. All the scripts that will be placed in Data/Mods folder and their extension will be *.as will be automatically loaded on game startup. Process will not load scripts which will be placed in subfolders! I have created few example scripts in the Data/Mods directory so it's worth checking them out! All the automatically loaded scripts should contain void Start() method otherwise it won't be loaded and the error log message will appear.

Basic script(mod)

/**
 * Entry function for the mod
 */
void Start()
{
    log.Info("Mod was loaded succesfully");
}

Scripts can subscribe to all the application events, complete list of them will be added in the future so for now you will just have to dig into the C++ code.

Clone this wiki locally