Quote:
Originally Posted by Switch
Try this
PHP Code:
temp.npc = putnpc2(player.x, player.y, "");
temp.npc.join("hat");
temp.npc.hatImage = "3";
|
Set the variables first.
PHP Code:
temp.npc = putnpc2(player.x, player.y, null);
npc.hatImage = 3;
npc.join("hat");