CommandService

Singleton representing chat command manager.  Can be accessed through Eternus.CommandService.

Summary
CommandServiceSingleton representing chat command manager.
Functions
NKRegisterChatCommandRegisters a chat command to a function.
NKAddLocalTextAdds text to the console locally on the box, not through the network
NKSendNetworkTextSends text to the console on all clients connected from the server

Functions

NKRegisterChatCommand

Registers a chat command to a function.  When the command is called, it can be followed by any number of arguments.  These arguments are passed to the script as strings.

Parameters

stringThe command to be entered.  If the name does not begin with a “/” then one will be inserted.
stringThe name of the function to be called in the game state script.

Returns

boolWhether the function was successfully bound or not.

NKAddLocalText

Adds text to the console locally on the box, not through the network

Parameters

stringThe text to be added locally to the client’s console

NKSendNetworkText

Sends text to the console on all clients connected from the server

Parameters

stringThe text to be added to all client consoles from the server
Close