also have you any manuals about scripts in multiplayer?
Viewing post in UDP Lan Multiplayer source code comments
Without knowing javascript its impossible to add commands to it.
This script made long time ago so there is better way to do that but at current version works like this..
You see line in i_in file :something like this:
1,-309.30,0.01,-112.74,155.23,stand,null&
its the player ID ,positionXYZ,rotationY,animation, COMMAND
ends with & symbol -then next player data will continue if any other player there.
command is not one parameter command as animation name or pos data,
command can be with parameters -separator is |
it reads string from file,
string res
command part starts from res[6]
to check what command it is :(for invisible command)
command name is Inv:
Is it inv?? check:
if res[6].substr(0, 4)=="Inv:"
if yes split it : separator is | for parameters:
var cres = res[6].split("|");
then do whatever needed and use parameters
var m=ccbGetSceneNodeFromName(cres[1]);
ccbSetSceneNodeProperty(m, "Visible", false);
cres[1] for invisible is str nodename.
command line looks like this:
myCommandName:|param1|param2|...and so on.
by script you can use those as needed.