ConsoleCommand

From Zandronum Wiki
Revision as of 16:03, 21 August 2016 by DrinkyBird (talk | contribs) (Created page with "{{MessageBox |bgcolor=#F88 |icon=File:MedalYouFailIt.png |text='''WARNING:''' ConsoleCommand is dangerous and is flagged for eventual removal over security reasons. It is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:MessageBox

This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

void ConsoleCommand (str consolecommand)

Usage

ConsoleCommand causes the game server to activate the given console command. This can be used to set mod-specific CVARs and other commands that cannot be executed by pure ACS. Only one command can be executed per function call. If the command is used from a CLIENTSIDE script, the local machine will execute the command.

The following commands cannot be used and will be ignored:

  • unbindall
  • unbind
  • bind
  • quit
  • exit
  • logfile
  • alias (including any alias commands)
  • screenshot
  • dumpmap
  • say
  • say_team
  • sv_banfile
  • sv_banexcemptionfile
  • sv_adminlistfile
  • error
  • error_fatal
  • crashout
  • wait

Aliases and bindings can be managed in a Template:ZDW lump.

Examples

This article lists no examples, please add one.