Closed Elletra closed 6 years ago
what about defining them?
Defining client and server functions is pretty simple.
function myClientCmdCallback() { print(arguments[0]); }
ts.expose(myClientCmdCallback, "", "clientCmdCallback");
function myServerCmdCallback() { print(arguments[0]);}
ts.expose(myServerCmdCallback, "", "serverCmdCallback");
Calling commandToClient/commandToServer requires to use of a constructed string.
Something along those lines You must have whatever character 0x01 corresponds to as the first part of the string-- this is used in Torque internally to verify that it is a "tag" type.