Log in

View Full Version : OnPlayerCommandText() Callback



Aeronix
07-04-2012, 04:00 PM
This callback is very important for the scripting engine.
I noticed how you did the example with the forward slash detection but, what if the client chatbox and other modules be modified through the use of client-side commands.
It would interfere, and ease the modification of the module settings.
The client could parse the commands and then detect whether if the command is client-side if not, send it through the callback.

roby65
07-04-2012, 06:44 PM
This callback is very important for the scripting engine.
I noticed how you did the example with the forward slash detection but, what if the client chatbox and other modules be modified through the use of client-side commands.
It would interfere, and ease the modification of the module settings.
The client could parse the commands and then detect whether if the command is client-side if not, send it through the callback.

It should work that the client parses the command, if it doesn't need to handle it, it sends it to the server.