I’ve got a character that shoots. The shoots have a brief lifetime, 4.5 seconds managed by a simple function that is called when the shot is instantiated:
function waitToDie()
{
yield new WaitForSeconds(4.5);
Destroy(me);
}
I want to be able to pause the game without the shot dying while paused. I don’t see anything in the docs that makes me think I can do this in a simple way via a yield instruction.
I’ve got some ideas on how to handle the problem if I can’t do it with yield but I’m really hoping for a K.I.S.S. solution so as to avoid taxing my poor brain.
Anyone know of a way to do this with yield? Thanx in advance.