Is there a way to get the actual timer value when a button input handling is set to hold?

I know you can use ORKFramework.ORK.InputKeys.Get(i).inputHoldTime to get the required time. Is there a way to get the actual time passed since the button was pressed?
  • Maybe you can play with global events and variables linked to key holding / releasing. :-)
  • Not from the input itself, as @Kaemalux suggested, using events would be the way here.

    E.g. using a global event with Key event type that sets a float game variable to Time Of Day. The used input key needs to be a Down input handling key.
    You can get the time the key was pressed by subtracting the stored time in the game variable from the current Time Of Day.
    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!
Sign In or Register to comment.