- Joined
- Jan 7, 2006
- Messages
- 1
For a map I'm making I need to know the exact time the arrow keys are pressed - or perhaps more accurately the time between arrow presses - but I can't figure out how to go about it.
I can get the time within .2 seconds by having a simple counter than increments a hundred times a second and a trigger that fires on keypresses, saving the value of the counter when the trigger executes. The problem is that triggers seem to run in batches, the world editor only running through them every .2 seconds or so, so the time is only saved when the function executes rather than when it is put on the queue. I had similiar results trying to base the timing off the in-game time of day.
Is there anyway to check when a trigger was put on the stack?
Or perhaps some way to increase the priority of the trigger, checking back 50 times a second instead of 5?
Any help would be appreciated
I can get the time within .2 seconds by having a simple counter than increments a hundred times a second and a trigger that fires on keypresses, saving the value of the counter when the trigger executes. The problem is that triggers seem to run in batches, the world editor only running through them every .2 seconds or so, so the time is only saved when the function executes rather than when it is put on the queue. I had similiar results trying to base the timing off the in-game time of day.
Is there anyway to check when a trigger was put on the stack?
Or perhaps some way to increase the priority of the trigger, checking back 50 times a second instead of 5?
Any help would be appreciated