Forum

> > CS2D > General > console command in editor
Forums overviewCS2D overviewGeneral overviewLog in to reply

English console command in editor

1 reply
To the start Previous 1 Next To the start

old Re: console command in editor

Lee
Moderator Off Offline

Quote
No, however third party commands can be created via Lua with the parse hook. As such

--Given that you have downloaded the string.lua library

1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("parse", "newcommands")

function newcommands(text)
	text = text:split()
	cmd = text[1]
	text = table.remove(text, 1)
	
	trail = string.join(text, " ")
	
	if cmd == "mycommand" then
		msg(trail)
	end
end
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview