I’m new at creating content with the engine so my question might be very basic:
I want to record (and then export) data like reaction time of a person playing the game, between multiple points.
If a person clicks on an object, I want to measure how long it takes the person to click the next object.
Is this possible? And is it possible to export this data to excel?
You can record the time when the first click happens, then the second, then minus the first from the second and the difference is reaction speed. You can also count the delta seconds in between clicks. I’ve made a small vid so you can see the general gist of it.
“First click” boolean defaults to false.
when you perform click #1, it stores the current hour/min/sec/milisec in one long string as “Time one” then sets “First click” to true. When you perform the second click, it sets “Time Two” with the current time string, Sets “First click” to false and then minuses “Time one” from “Time two”, giving you the time between the two clicks. I then convert that float to a string, append “MS” to it and print it and the two times on screen.
As for exporting data from UE4, Rama’s node plugin has that covered for you. It also has a node that will compare any time and I recommend using it, but I also thought id whip an example up so you understand what’s happening.
This same code can be used for anything like time trial checkpoints/lap split times etc, instead of using the mouse click, you use a trigger on the start/finish line or any part of the map you want.