I know I'm probably way off on what it should be, but I'm working on my baddie effects and I need my baddie to place an NPC.
Sooo basically an NPC making an NPC
PHP Code:
function onHurt() {
temp.npc = this.level.putNPC2(this.x, this.y, "");
temp.npc.join("hiteffect");
}