Moving the sun based on player location

Hi first time posting here as I can’t find any help on the subject and Im struggling with this.

I’m working on a game that takes place on a tidally locked planet, and I’m having issues with the sun,

I feel like it should be simple but basically i want it so that the sun comes up or down based on how far the player travels on the Y axis

thankyou for any help :slight_smile:

Put a task inside the Player Controller that reads the player pawn coordinate, and then applies a change to the sun actor.
You’d want to do something to find the sun actor when you event begin play in the controller, and you probably only need to run this task every 2 seconds or whatever, depending on how fast the player travels and how far the sun must move.
You also need to set the sun to “movable” and turn off static/pre-computed lighting in the level.