Raised This Month: $ Target: $400
 0% 

Detect how far someone walked.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-13-2010 , 19:37   Re: Detect how far someone walked.
Reply With Quote #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 View Post
You're retarded.

Last edited by drekes; 05-13-2010 at 19:41.
drekes is offline
Send a message via MSN to drekes
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode