Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
ScriptModule Class Reference

Detailed Description

Module containing compiled scripts.

string watch = "GetGame().InPlayMode()";
string code = string.Format("string WatchResult() { return string.ToString(%1); }", watch);
string logText;
int logLine;
ScriptModule mod = ScriptModule.CompileScript(GetGame().GetScriptModule(), code, logText, logLine);
if (mod)
{
string output;
mod.Call(null, "WatchResult", false, output);
Print(output);
}
else
{
Print(logText);
Print(logLine);
}
ArmaReforgerScripted GetGame()
Definition game.c:1398
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.

Definition at line 33 of file ScriptModule.c.


The documentation for this class was generated from the following file: