[ H3LP ] Check entity in origin distance
Hello. How can I check the closest entity in an origin distance? Like if I use vector_distance from point1 to point2, I wanna get the closest entity from that vector distance.
|
Re: [ H3LP ] Check entity in origin distance
Loop through all entities in this distance and keep only the closest one in variable.
|
Re: [ H3LP ] Check entity in origin distance
Use Find entity in sphere and check who got the closest distance
|
Re: [ H3LP ] Check entity in origin distance
Quote:
|
Re: [ H3LP ] Check entity in origin distance
Quote:
PHP Code:
Origin_1 is where your point 1 is located |
All times are GMT -4. The time now is 23:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.