Posted By: vlau
Return more scanned entities within scan range - 04/12/06 18:29
Is it possible to return more scanned entities
which they are within the scan range.
I'm just thinking the limitation of the current c_scan function
only return one entity due to only one "you", one "result",
one "target" and one "bounce" internal variable. Could it be
store them to an array in the future?
Thanks.
Posted By: Doug
Re: Return more scanned entities within scan range - 04/12/06 22:41
More likely this would work like "path_scan" and "path_scannode".
Quote:
path_scannode(ENTITY*,var index)
Finds further path nodes within the cone of the last path_scan instruction.
Posted By: vlau
Re: Return more scanned entities within scan range - 04/13/06 06:26
Thanks for your reply Doug, but I want to scan
those models that facing the player's direction
and they don't have any path attached, and I want
to get each model's position and distance.
I think path_scannode is not for this case or am I
wrong?
Posted By: FBL
Re: Return more scanned entities within scan range - 04/13/06 11:39
Well, evaluate the scan results not in the event function of the scanning entity, but in the event function of the entity being scanned.
This way, my and you of course are exchanged, but ANY scanned entity will have the you pointer pointing to the entity which triggered the scan.
I'm doing this to check whether multiple entities were hit by an explosion.
Posted By: vlau
Re: Return more scanned entities within scan range - 04/13/06 14:23
Thanks Firoball, you're always helpful. I have my workaround also,
but if I only want a workaround, I will not post to this forum.
What I'm asking is just an improvement of c-script function in
"The Future", not tomorrow. I've noticed that most of the time,
Conitec only response for some VIPs or A6 Pro user's posts to this
forum, others are always ignored.
Anyway, I do really appreciate your help Firoball.