Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Return more scanned entities within scan range #70625
04/12/06 18:29
04/12/06 18:29
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
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.

Re: Return more scanned entities within scan range [Re: vlau] #70626
04/12/06 22:41
04/12/06 22:41
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
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.






Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: Return more scanned entities within scan range [Re: Doug] #70627
04/13/06 06:26
04/13/06 06:26
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
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?

Re: Return more scanned entities within scan range [Re: vlau] #70628
04/13/06 11:39
04/13/06 11:39
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
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.

Re: Return more scanned entities within scan range [Re: FBL] #70629
04/13/06 14:23
04/13/06 14:23
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
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.

Re: Return more scanned entities within scan range [Re: vlau] #70630
04/13/06 20:26
04/13/06 20:26
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Quote:

I think path_scannode is not for this case or am I
wrong?




No, you're right. I just wanted to say that *if* we added such a feature it would most likely work like path_scannode.

Right now there isn't any plan to do this, so you're going to have to use the work around Firoball talked about.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1