Raised This Month: $ Target: $400
 0% 

Find all entitys around player ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 06-19-2014 , 17:36   Re: Find all entitys around player ?
Reply With Quote #3

For finding all entities inside the sphere you usually use the native like this:

PHP Code:
new ent = -1;
while ((
ent find_ent_in_sphere(entoriginradius)) {
   
// new entity found

This way you start with entity -1 which will return the first entity inside the sphere, and then work your way up until you found the last one.
__________________
In Flames we trust!
Nextra is offline
 



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 21:13.


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