Es.flags

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: flags

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

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

Arguments

  • add/remove - Choose whether to add or remove the flag.
  • flag - This is the flag you want to add/remove. Possible values are cheat, 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

def load():
    # disable say command if cheats is off.
    es.flags('add', 'cheat', 'say')
    es.flags('add', 'cheat', 'say_team')
 
def unload():
    # allow the say commands again.
    es.flags('remove', 'cheat', 'say')
    es.flags('remove', 'cheat', 'say_team')

Notes

  • This command is experimental!

See Also

blog comments powered by Disqus