Skip to content

CAngelScriptVM@

The class for AngelScript VM "manager".

Methods

  • void ClientCommand(string&in cmd) -- Executes the command for the player as if they typed it out for themselves.
  • void DelayedExecution(float flTime, string&in sClass, string&in sFunc, bool bReplaceExisting = false) -- Executes an AngelScript function with timed delay. (0 is instantenous)
  • void InstantExecution(string&in sClass, string&in sFunc) -- 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.