View Single Post
  #3  
Old 03-25-2006, 09:08 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
__________________
Liek omigosh.

Reply With Quote