Trying to set my variable seasons to increment from 0-4 but not sure how to do this
Use Set Season node. Just drag it from the variable list to the graph. And then select Set Season
okay I understand that but I am not sure what logic to use to get the season to increment from 0-4
It really depends on your game. We need a bit more context in order to help you. What is a season, where is it used… etc.
the game is an RTS style, has a year system that changes has seasons change. I am using Ultra Dynamic sky for this.
This is set in the game mode, and this is what I tried but I didnt even get a print string
If you dind’t get the print string than ti means that WeatherBP cast has failed. You probably failed to initialize that variable properly on BeginPlay or on spawn.
makes sense, I removed the cast to, as I already have a get actor from class, and now the print string outputs
Now I am not sure how to do the increments now
You have to do it from the cast. But variables have to be set properly. I would suggest you watch some YouTube video. it is really hard to help like this - blindly. Without having knowledge of your project… etc.
Sorry but I dont know what more I can say to help you understand.
I thought the concept would be pretty simple, get a float incrementing from 0-4. Just like how a clock goes from 0-24 hours.
Do you have any suggestions for videos?
ah those would be no use.
I asked the creator himself and he just said to “use a timer or time value somehow”
I have figured out the time thing, will just need to figure how to assign it to the season Variable.
Thank you for your help
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.