TyburnKetch Posted December 9, 2018 Share Posted December 9, 2018 (edited) Unfortunately I can not post my script right now (which would obviously be helpful) However ... I am using utility.wait on a script that asks if the player is sitting, utility.wait - give player a blessing. It works, however after more testing I have discovered that utility.wait runs even after the event should be cancelled.If the player stands up before the blessing has fired utility.wait continues its count regardless. I am looking for utility.wait to reset when the player stands up if the blessing has not fired. At the moment if the amount of time has passed (in this case 15.0), regardless of if the player is sitting or not, when the player activates the chair (script) again they are instantly given the blessing instead of having to wait again from the start of the (timer) Should I set an Int function for the timer? What else could be missing? Edited December 9, 2018 by TyburnKetch Link to comment Share on other sites More sharing options...
TheWormpie Posted December 9, 2018 Share Posted December 9, 2018 (edited) You're looking for RegisterForSingleUpdate(15.0) and OnUpdate(). EDIT: And of course UnregisterForUpdate() to stop it if needed. Edited December 9, 2018 by wormple12 Link to comment Share on other sites More sharing options...
TyburnKetch Posted December 9, 2018 Author Share Posted December 9, 2018 (edited) Thank you! Update* (get it?;))It works. So simple, but I needed to learn it. So thank you again. Edited December 9, 2018 by TyburnKetch Link to comment Share on other sites More sharing options...
Recommended Posts