action(t)
if(dead)
moved = 0
if(!client)
spawn(60)
respawn()
loc = locate(initial(x), initial(y), initial(z))
Problem description:Hello byond developers, i need a bit of help, im using Forum_account's Action RPG Framework library and i want to make the ingame ai/monsters respawn after die to his initial possition, but i cant, i used the code that you can see in the top of this description but when the mob respawns still gots me as target and he comes from his initial poss to me, i can be far and he still comes to kill me.
Also, instead of loc = locate(initial(x), initial(y), initial(z)), I think you could also do loc = initial(loc) to avoid unnecessary computing.