Quote:
Originally Posted by hellmonja
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.
__________________