first you’d have to define your times, ie day/night
you could use the pitch for this since you have it,
so find out what Range of Y equals night, lets say for example <0
then create a function to evaluate the pitch on tick.
if (Y<0 & Not Night) then call TransitionToNightEvent