Non-Moving player
How would I get to know if the player is standing still for (x) amount of time and is on the ground? And what would I have to: register_event to
|
Re: Non-Moving player
Code:
This monitors when they move (have velocity) or get off the ground (FL_ONGROUND is not a part of their entity flags). Then, it records that time. It also checks to see if it's been 5.0 seconds since the last recorded time that they moved. You'll probably want to not check this on death, and also reset the lastMove time on spawn. |
Re: Non-Moving player
So, this would moniter when they are not moving 'camping' this isn't going to be the full code though. ;)
Code:
|
Re: Non-Moving player
post in small tags..
|
Re: Non-Moving player
I have edited it.
|
Re: Non-Moving player
Probably. But there is no FL_OFFGROUND, only FL_ONGROUND (which is why I use !, for NOT).
|
Re: Non-Moving player
Ah, okay.
|
Re: Non-Moving player
Quote:
|
| All times are GMT -4. The time now is 07:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.