How to get InputAction from character BP to 'set new time' of a timeline in an actor BP?
Hi guys, I got a sun path system made in a BP using timeline, with time from 0-24, to represent the 24 hours of the day. It works fine, but what I want to do now is to press, for example, a button in UMG or the 'K' key and it will jump to a certain time of the day, lets say 12 noon. How can I do it? Thank you.
asked Apr 24 '15 at 06:07 PM in Blueprint Scripting
If you build the blueprint so that a single Time Value drives all of the parameters, then all you need to do is set the CurrentTime to the desired time. In terms of communicating with the character, you could in theory have the character communicate with the TimeofDayBP by doing "get all actors of class" assuming there is only 1 of these blueprints. You could also try storing the time value in a global material parameter collection and looking it up there in the time of day BP.
The GDC Kite demo has a simple example of time of day in blueprints where the time is the only variable controlling it. That will be released with 4.8 next month. If you want I can paste some images of how it is set up.
Parameters for time of sunrise and sunset etc define exactly where the transitions occur. Structs store all lighting/postprocess settings for each time of day.
Follow this question
Once you sign in you will be able to subscribe for any updates here