How would I make my enemy respawn after death? All I've done so far is a little iconing and Zilal's beginer tutorial. Please help.
ID:271861
![]() Dec 11 2007, 4:43 pm
|
|
![]() Dec 11 2007, 4:47 pm
|
|
When it dies... make a new one?
|
Well I was giving you an answer. For example, I assume you have a proc that checks for death. In the proc, after you delete the mob that died just sleep for however long you want and then after that sleep is over, created a new monster.
|
Mystic.Gohaku wrote:
In the proc, after you delete the mob that died just sleep for however long you want and then after that sleep is over, created a new monster. You can't do this. All of an object's procs stop once it's been deleted. You can, however, just move that dead monster somewhere it can't do anything (so, loc = null), then after some amount of time, move it back to where it was, and reset all its stats using initial() so that it's alive again. |
ummm well I don't under stand where to put it..... I'm not good at that stuff so could you tell me where to put it?
|
Ok here's a generic example. This is just generic so it probably won't work with your code, so don't expect to just copy and paste.
mob |
That doesn't really make sense to me..... Can you tell me if any guides tell you or something. I don't really understand. Can you tell me something that would work?
|