UserCommandEx class

The UserCommandEx class allows you to add multiple $UserCommand's to the same object
The $UserCommand's is sent to all users by hexhub during login.
Hex.UserCommandEx() returns a new object of type UserCommandEx.
For more information about how to create an instance of this object read Hex.UserCommandEx() section.

Remarks:
The usercommands will be sent as long as this object is valid.
Once the lua garbage collector collects this object all usercommands will be automatically unregistered with hexhub.

This object is only available in Hex Script versions >= 1.2.0.0

The usercommands in this object is not editable, if you need editable usercommands you can use the UserCommand class object.

Object:AddUserCommandString(sUserCommand)

This function adds a user menu sent to clients during login.

Hex Script versions < 1.2.0.1:
This function does not return a value
Hex Script versions >= 1.2.0.1:
This function returns false on error, and true on success.

Parameters:

usrcmds = Hex.UserCommandEx()
usrcmda:AddUserCommandString("$UserCommand First menu....")
usrcmda:AddUserCommandString("$UserCommand second menu....")
usrcmda:AddUserCommandString("$UserCommand third menu....")

Generated on Sat Aug 22 21:09:31 2009 for Hex Script by  doxygen 1.5.8