Cheatexec

From EventScripts Community Encyclopedia

Overview

Syntax: cheatexec <command>

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: none

Description

Allows you to execute silently a cheat command as cl_forwardspeed.

Parameters

  • command - the cheatcommand you want to be executed


Examples

event player_say
{
	if (event_var(text) = "noclip") then cheatexec "cl_forwardspeed 10"
}


Notes

  • This command is the same as doing
es_forcevalue sv_cheats 1
cl_forwardspeed 10
es_forcevalue sv_cheats 0


See also


blog comments powered by Disqus