Tick reset variable

When game loading level it sets game date, but it resets when tick starts

is there a solution?

i wanna add that if i set date manually it works, but if i connect variables to set date its just resetting it to default

I’m not familiar with setClockwork, is that one you made?

One of your Custom Events there has a blue note under it, what does that say?

What do the functions Clock and Calendar look like?

My idea without the above information is that the pure node setClockwork is returning different data every time its ran

Delta Secounds will be a different number as well on different computers/depending on frame rate worth noting

Hope this helps i’d love to help you narrow it down further but need more information… or ill have to figure out SetClockwork myself if thats not user made

Try by default set the actor tick is disabled, and enable the tick after the function SetGameDate.

Double check if function timers wouldnt be easier to use instead of tick, you can use pause/resume timer

SetClockwork Definity seems to be something you made or from a plugin, assuming it just does some math in there i’d still like to see it if ya don’t mind
along with clock and calendar, i’ll recreate it real quick and see if i can’t find it for ya

Yeah, it’s made function

Blue note:

image

It’s already disabled by default

Clock:

Calendar:

My guess is this is your Level BP and your using the custom event as a function called from someplace else, you can make the blue go away by making it a function

So basically not a problem if it’s not called from within this same BP, but if it is within this same Bp i mean the note kinda says what to do, but you’ll have to make those variables or pass them in wherever your calling it

i’m calling LevelLoaded in widget, after loading the level

Screenshot 2024-06-04 072122
If you don’t need specifically the real date time this may help it’s a node provided by engine

Yea definitely just go ahead and make that a function instead, i don’t think its necessarily causing an issue but it’ll narrow down the possibility and make the note go away


a little something like this maybe, oh nvm i see i solved it :sweat_smile:
and pardon the spaghetti

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