CAngelScriptVM@
The class for AngelScript VM "manager".
Methods
string GetCurMapName()-- Gets the current map name in lower-case.void ClientCommand(string&in cmd, CP3Player@ player = null)-- Executes the command for the player as if they typed it out for themselves.void ServerCommand(string&in cmd)-- Executes server command.void DelayedExecution(float flTime, string&in sClass, string&in sFunc, CP3SObj@ owner, bool bReplaceExisting = false, CP3SObj@ caller = null)-- Executes an AngelScript function with timed delay. (0 is instantenous)void InstantExecution(string&in sClass, string&in sFunc, CP3SObj@ owner, CP3SObj@ caller = null)-- Executes an AngelScript function instantly.bool IsMultiplayer()-- Returns true if current game is multiplayer.void AddGlobalBool(bool bSet, int iNum)-- Adds a global boolean which never resets. (Persists between games)int GetGlobalBool(int iNum)-- Gets the global boolean. Returns -1 if it doesn't exist.void AddStaticBool(bool bSet, int iNum)-- Adds a static boolean which will reset after a new game.int GetStaticBool(int iNum)-- Gets the static boolean. Returns -1 if it doesn't exist.