I have a wolf, when I damage that wolf, it's health ticks down by 20, when I kill that wolf, the wolf despawns -- it works.
However, if i spawn a second wolf, then I kill the first wolf, the second wolf will crash my game, because the instance of the health object no longer exists.
How do I resolve this?
Thanks.
↧