Is what I have right now in the weapon npc.
PHP Code:
function onActionserverside(){
if (params[0] == "place") {
// temp.npc = putnpc2(player.x, player.y, "join(\"hat\");");
// with(temp.npc) {
// temp.hatImage = "3";
// }
temp.npc = putnpc2(player.x, player.y, Null);
npc.hatImage = "3";
npc.join("hat");
}
}
Is what I have right now in the class npc.
PHP Code:
function onCreated() {
setshape(1, 32, 32);
echo(this.hatimage);
}