Quote:
|
Originally Posted by projectigi
Hi,
NPC Code:
function onCreated(){
thiso.objtest=NULL;
thiso.objtest=new TStaticVar();
echo("before:" SPC thiso.objtest.test1);
thiso.objtest.test1="blah";
echo("after:" SPC thiso.objtest.test1);
findplayer("projectigi").triggerclient("-trgtest",thiso.objtest);
}
//#CLIENTSIDE
function onActionClientSide(){
player.chat="s" SPC params[0].test1;
}
don't works, is there any way to correctly pass an object through a triggeraction?
|
If this is inside a weapon, it obviously will not work because onCreated() and such events are not called on the serverside in a weapon.