Need advice setting up a day/night cycle that's tied to a players actions.

Currenlty have a “Job” the player has to perform, simply by going to a trigger box and pressing F. The action is performed and a small animation plays. How would I go about this changing the rotation of the sun?

Thank you for your help!

Okay so I managed to change the time of day simply by adding a set value to the rotation of the Sun everytime a trigger is pressed inside a trigger box, and it works perfectly!

However there is no limit to how many times I can press it, it will just continually keep changing the rotation of the sun each time I press E indefinitely.

How would I go about making this more intuitive? I would like for the player to only be able to “Work” three times a day, until they go to bed, and then reset.

Can anyone offer advice? :slight_smile:

I think I may have found the solution by using a Do N mode :slight_smile: