Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Setting time using timeline

alt textHello, I have a timeline in my level blueprint which decides the sun position (time) this sets a float variable but obviously not in time format (i.e 10:00 will be 10.00101 etc). So I've turned that in to an integar so it is just 10,11,12 at the time that was all I needed (in my updated level blueprint I have a siren that sounds at specific times). But now I want to display the game time on the HUd and struggling how to do this I found a few Time nodes but not sure how to use them with my timeline. So I want away to use the output "time" from the timeline and convert that into actual time format to display on my HUD Thanks

Product Version: UE 4.8
levelbp.jpg (419.1 kB)
more ▼

asked Jul 12 '15 at 11:45 AM in Using UE4

avatar image

139 18 19 26

avatar image Shadowriver Jul 12 '15 at 06:47 PM

Do you use time line to anything, or you just use it to get time?

avatar image Scottc91 Jul 12 '15 at 09:27 PM

The timeline rotates the "sun" to make night and day. Atm it's on a 2 minute cycle for testing purposes but will make it a 10-15 minutes for full cycle in the future

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

make a float track in your timeline that ranges from 0 to 1440 (minuets in a day)for 24h clock or (0 to 720) x2 for 12h clock alt text

time of day.jpg (361.3 kB)
more ▼

answered Jul 12 '15 at 10:45 PM

avatar image

Alan Webster
860 50 34 81

avatar image Scottc91 Jul 12 '15 at 10:57 PM

Thanks got it working :) I'll just make some tweets so when minutes are less than 10 it appends a 0 in front so it'll be 12:01 for example. Thabks again

avatar image Scottc91 Jul 12 '15 at 11:29 PM

I'm now trying to get that time to print onto my HUD widget, but because it's in my level blueprint it's hard to get it to communicate with other blueprints on ideas on that?

avatar image Scottc91 Jul 12 '15 at 11:40 PM

Nevermore sorted it casted to player character and set variables in there to go to HUD

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question