Getting distance between player and entity gives wrong result.
Hello everybody,
I try to store the position of a End Button using this Code Code:
new Float:g_flDist[33][3]Code:
static Float:origin[3]Code:
get_distance_f(origin, g_flDist[id]) |
Re: Getting distance between player and entity gives wrong result.
Buttons are brush entities, you have to compute origin doing (absmax + absmin)/2
|
Re: Getting distance between player and entity gives wrong result.
Thanks. :)
|
Re: Getting distance between player and entity gives wrong result.
Quote:
Classic .. Thanks Connor :D |
| All times are GMT -4. The time now is 06:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.