View Single Post
E1_531G
Senior Member
Join Date: Dec 2017
Old 09-06-2019 , 15:35   Re: [HELP] Finding Players Around Point
Reply With Quote #8

Quote:
Originally Posted by hellmonja View Post
Wait, I've seen find_ent_in_sphere before. But what I don't get is what use start_from_ent if you already have an origin to base something around? And should the start_from_ent the shooter?...
For the first search you use start_from_ent = -1, but when you need to find more than one ent you have to use start_from_ent = index-of-the-previous-ent for the 2nd and next searches. (if not doing this, it will find the same ent every time).

And yes, get_user_origin() wint mode = 4 will return the position (origin) of last bullet hit.
__________________
My English is A0
E1_531G is offline