Raised This Month: $51 Target: $400
 12% 

Finding entities within a certain distance of another


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geel9
Senior Member
Join Date: Mar 2009
Old 07-10-2010 , 09:57   Finding entities within a certain distance of another
Reply With Quote #1

I'm coding a plugin and I need to see if an entity is within a certain distance of another. The GetVectorDistance command spouts out a really high number that I'm sure is wrong. Is there an example for that? Or is it broken?
Geel9 is offline
CarlZalph
Junior Member
Join Date: May 2010
Old 07-10-2010 , 11:29   Re: Finding entities within a certain distance of another
Reply With Quote #2

The_Distance = GetVectorDistance(First_Vector, Second_Vector, false);

Hammer units are very small.
They're roughly around 5 pixels/1Hu.

An estimate you can go by is that it is around 3000 Hu from one sniper deck to the other on 2Fort.
CarlZalph is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 07-10-2010 , 17:41   Re: Finding entities within a certain distance of another
Reply With Quote #3

1 Hu ~= 1 inch. so a distance of 1200 is only 100 feet.
dirka_dirka is offline
Reply



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 02:19.


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