Hi,

is there a key code like and but for battle duration?
  • No, there's also no built-in battle timer or anything like that.

    However, you can use timers via float variables for this. See the Value > Timer nodes for this, e.g. using Start Timer in your battle start schematic to start counint a timer upwards. Timers use float variables, so you can access them as variables and use text codes to output them somewhere.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Is there a way to format this timer into hh:mm:ss
    I see I can display it at as a float with formatting using 00.0, so i tried 00.00.00 but that did not work.

    I tried a script that starts a timer using void() start -> battletimer = 0f and formatting the text that way, however there is data persistency issues with the hud being donotdestroy.
  • Flag that, i've fixed by resetting the timer in OnEnabled()

    But i guess it would still be good to know if I can format that float value to hh:mm:ss
  • Well, the float value is in seconds, i.e. you'd need to do some variable changes/calculations to get minutes and seconds separately in different variables and display them that way.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.