milports:
Hi ,
I’m having a little drama with using “selected” and trying to manually control the presets for weather.
Everything is working in terms of the “drawing” on the screen, the weather picks what I want and stays that way. I have created an event on tick to output the current preset by getting the blueprint, assigning it to a variable and then pulling out “selected weather preset” and assigning it to a variable. My hope is to say, “if rain, do xxxxx”. See Get Preset posted by anonymous | blueprintUE | PasteBin For Unreal Engine for a graphical explanation of what I’m doing.
The problem is that the variable is changing between all the presets every tick. It is not pulling out the selected variable, it’s rotating through some of them, but not all which is weird. It seems to be 0, 2, 3, 11.
Any ideas why the get “selected preset” is rotating between an array of some kind?
EDIT: Nevermind, I’ve got no idea, but simply closing UE4 and reopening fixed it… must have picked up something weird somewhere along the way.
Thanks,
Milports
You should use SetPresetExternal or SetpresetByIndex when you want to change the weather on the specific event, not every frame (check the documentation and example level blueprint).