How to make enemy respawn in Developer Help
|
|
Code:
DeathCheck(var/mob/Killer) if(src.HP<=0) if(src.client) world<<"[Killer] Killed [src]!" src.HP=src.MaxHP src.loc=locate(9,3,1) src.Deaths+=1 else Killer<<"<b>You Killed [src] for [src.Exp] Exp" Killer.Exp+=src.Exp Killer.LevelCheck() usr.Gold+=2 usr.Kills+=1 del src
|
Problem description: how do i made the enemy respawn
|
I would never remove the "enemy" I would just return the mob to it's starting location with no icon no density and give it a timer... Simple really..