ConsoleCommand

From Zandronum Wiki
Revision as of 21:49, 10 January 2019 by DrinkyBird (talk | contribs)

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 {{{2}}} lump.

Examples

This article lists no examples, please add one.