Problems with code activation

I have a small system for determining whether a player is in AFK. It only works halfway. I need the code that is inside the blue circle to be turned on when any player action (pressing any key on the keyboard, moving the mouse, clicking on the mouse buttons, etc.) I use new enhanced input system. And there is no such input type that would work. Please, help.

afk.zip (8.4 MB)

2 Likes

Thank you very much for the help. But that didn’t really help. I accidentally realized that inputs do not work in the pawn class, so I checked it in character and everything worked. Also, “any key” does not dected mouse movement. I didn’t find a ready function. So I made it myself. I’ll throw it here, maybe someday it will help another person wandering in search of a solution to his problems

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.