Set Global Time

I have a timer inside my gamemode (eventually I will be adding days, months, and years to it) which seems to work:

But when I call the variable using this blueprint:

I get the error: Blueprint Runtime Error: “Accessed None trying to read property TimeVar”. Node: Return Node Graph: Get_Hours_Text Function: Get Hours Text Blueprint: HUD

1 Like

You haven’t set the variable.

Use ‘get game mode’ plugged into a cast to your game mode type.

But even then… delay on tick doesn’t work. You already have lots of built in time options, such as

1 Like

I see! I was overcomplicating things MASSIVELY. I’ve now got the date and time displaying properly but I want each second to be a minute, any idea which function I would use to achieve that?

Can you explain a bit more?

Absolutely, sorry.

I want each IRL Second to be 1 minute in game time, I tried using math with each event tick but it wouldn’t port to in on the “make date time”

Can you just ignore the seconds? Then you can pretend the minutes are seconds, etc…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.