Detecting movement
#1

Hi guys.
Just a fast question on how to detect movement.
Well, i want to make a AFK system, that automatically puts a player in AFK mode if he hasn't moved for 2 minutes.
So how do I detect whether he has moved for 2 minutes or not?
I thourght about making a timer that gets the players position, and if he then is at the same position after 2 minutes, it will turn him AFK.
But maybe there is an easier way?

Thank you.
Reply


Messages In This Thread
Detecting movement - by sim_sima - 20.10.2011, 21:04
Re: Detecting movement - by Kingunit - 20.10.2011, 22:42
Re: Detecting movement - by SuperViper - 21.10.2011, 01:02
Re: Detecting movement - by sim_sima - 21.10.2011, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)