Es flags

From EventScripts Community Encyclopedia


Overview

Syntax: es_flags <add/remove> <flag> <command/var>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xflags

Description

Allows you to add/remove certain flags from variables and commands.

Parameters

  • add/remove - Choose whether to add or remove the flag.
  • flag - This is the flag you want to add/remove. Possible values are cheat and (in ES2) notify, gamedll, replicated, protected, unlogged, neverstring, printable, demo, and dontrecord.
  • command/var - This is the command/cvar you want to add/remove the flag to/from.

Examples

block load
{
   // disable say command if cheats is off.
   es_flags add cheat say
   es_flags add cheat say_team
}
block unload
{
   // allow the say commands again.
   es_flags remove cheat say
   es_flags remove cheat say_team
}

Notes

  • Only the cheat flag was supported in ES 1.5, but more are available in ES2.
  • This command is experimental!

See also

blog comments powered by Disqus