Greetings!
This time I come with a dilemma I can't seem to resolve. I gather that if I want something to be repeatable every six seconds, OnHeartBeat scripts are the best to go for. Alas, I find myself with the issue that I'd like some of my npcs to perform several tasks, and these tasks, take more than six seconds to accomplish. What this means is that right now with an OnHeartBeat script I'm being forced to cut back on the commands I give to my npc because it will restart from 0 before the npc is done doing what I want it to do.
That is why I have been looking into possible ways to accomplish the same thing an OnHeartBeat script does but with a longer lapse of time. I've looked into OnSpawnScript, because it seems like the most logical choice to go for as I want my npcs starting to do their things the moment they spawn.
Alas, my problem now is that I do not know how to tell the script to recycle once it's reached and done all the commands in the lines.
Is there a way to tell a script to restart from the beginning once it's finished its last command?
Thanks in advance for the help!





Retour en haut






