[Feature Request] Allow Chai to execute commands.
-
Allow Chaiscript to execute commands like
map_rotate
. -
I agree
-
I also hope they will allow us to create custom commands like we did on IW4x, I mean I hope they will add something like the onPlayerCommand() function
-
Shockeh You can listen for chat messages using the chat_message level notify.
-
tom how? level.onNotify("chat_message ") and what i do after this?
-
level.onNotify("chat_message", fun(arguments) { var player = arguments[0]; var message = arguments[1]; });
Player and message might be reversed so just experiment with it.
-
tom said in [Feature Request] Allow Chai to execute commands.:
level.onNotify("chat_message", fun(arguments) {
var player = arguments[0];
var message = arguments[1];
});that's actually insane. Thanks so much.