Ok, here's the basic of what I have...
WEAPON:
NPC Code:
if (actionserverside) {
putnpc2 playerx,playery,{join class;};
with (npcs[npcscount-1]) { this.test=3; }
}
//#CLIENTSIDE
if (weaponfired) { triggeraction 0,0,serverside,weapon; }
CLASS:
NPC Code:
//#CLIENTSIDE
if (created) { message #v(this.test); }
That's not my actual script, it's much longer, but you get the idea, that still won't work.