Hi, I am having a hard time devising a "away from keyboard" detection for a single player game which originates from the third person template.
basically I have tried storing the player's location, followed by a retriggable delay, then comparing the stored position to the current position of the player. I am also checking whether there is any mouse or keyboard axis input before and after the delay.
Yet it doesn't work as expected, does anyone know of a working approach to effectively detect whether the player hasn't been active for a given amount of time? Here is my setup which at all doesn't make sense about when the afk mode kicks in, and sometimes it just doesn't do anything. I know it is on because my camera movement adjusts if the bored bool is true, the camera movement is not in this event chain however.
asked Jan 24 '16 at 11:51 AM in Blueprint Scripting
Check for animations poses, if the same animation keep playing for 5 minutes means "something is wrong". Also, when the animation pose changes, save the location where the character is, this avoid setting afk when the player is, for instance, running for 5 minutes without stopping.
answered Jan 24 '16 at 03:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here