02 Jan 12, 04:14AM
COMMAND and COMMANDN are macros that define cubescript idents.
COMMAND(myident, ARG_3STR);
Makes myident execute the C++ function "myident" with the three arguments being strings.
COMMANDN(myotherident, myident, ARG_3STR);
makes myotherident execute the C++ function "myident" with the three arguments being strings.
There is also ARG_NONE, ARG_1INT, ARG_1STR, and such.
COMMAND(myident, ARG_3STR);
Makes myident execute the C++ function "myident" with the three arguments being strings.
COMMANDN(myotherident, myident, ARG_3STR);
makes myotherident execute the C++ function "myident" with the three arguments being strings.
There is also ARG_NONE, ARG_1INT, ARG_1STR, and such.