After killing the enemy npc [del(src)] how do I make them respawn on the map?
ID:1229046
![]() Apr 6 2013, 10:32 am (Edited on Apr 6 2013, 10:47 am)
|
|
mob Everything looks great ^^ I'm just curious about what if I make 30+ of the same npc will I need to set src.loc=locate(?,?,?) for each of them? |
Yes. Or if(istype(src,mob/AI)) (Which would do all the AI, I believe)
mob |
mob/var This would be easier to do, I didn't test though |
Ah, one more question though. How do I make spawning delays for the AI's after they die?
|
Create a variable such as spawn_delay for each NPC then do spawn(src.spawn_delay) before restoring them.
|
Something like that, but then again I didn't test it.