Download

Sun Powered Stamina

Hello, I have a question. Do I need to include the Sun (directional light) in my characters class blueprint in order to reference a bool variable called (Day_Mode) which is turned on and off depending on the rotation of “Sun” or is there way for me to establish the variable in my level blue print and the call it in my character class blueprint?

no, don’t include the sun in your character.
Yes, use your level event(ie if you update your sun rotation every tick slowly), and down the line check if sun rotation should change your character state, if so , call character’s interface event or function by getting player pawn and sets their day/night state.

Or put it in the game mode and access it from your player. Yes, it’s possible.

I don’t see a function for changing the character state or character’s interface event. I am not exactly sure what you are talking about.

Edit: Interfaces are weirdly confusing. The documentation on them doesn’t go into very much detail.