Hello everyone!
I would like to convert this script, which uses delays, to a server time check to achieve the same time restriction of 20 minutes. I have no idea how to go about doing this and am hoping someone can show me the way.
http://pastebin.com/7SHZFsnY
Reason being:
I have a food system for my module that uses delays to reset an integer on the PC that prohibits them from stacking food effects. These buffs wear off during resting and in turn it resets the integer back to 0 so you can eat again. Thinking this through I realized that the original script would keep running and in turn reset that integer back to 0 if you ate again after resting allowing PC's to stack food if they timed it right.
Any help is much appreciated and thanks in advance!