 |
|
Veteran Member
Join Date: Jul 2009
Location: Vault 11
|

05-13-2010
, 19:37
Re: Detect how far someone walked.
|
#8
|
What i'm trying to achieve, is the distance travelled by a player, i'm working on a achievement plugin, and i wanted to add something like "Travelled x distance.", so it should check every step he makes. I was thinking about setting a task every seconds, but that won't be the best way to do it.
it's actually like Exolent[jNr] said, getting every unit, the direction doesn't matter.
And i'm gonna see if i can find some info about Prethink like in grimvh2's example.
Thanks.
EDIT: I don't really understand the info about Prethink in ham_const.inc, but if i use fakemeta and get the direction that he is walking, i can know when he is walking, and if i can get speed, like the speedometer code, i should be able to calculate the distance right?
__________________
Quote:
Originally Posted by nikhilgupta345
You're retarded.
|
Last edited by drekes; 05-13-2010 at 19:41.
|
|
|
|