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
0 registered members (), 938 guests, and 4 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
How Can This Be Converted To "Trace"? #185387
02/24/08 02:09
02/24/08 02:09
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
how can i make this code work with trace?

c_scan(player.x,player.pan,vector(360,180,250),scan_ents | scan_limit ignore_me);

mainly the vector(360,180,250) so i can trace that area...

Re: How Can This Be Converted To "Trace"? [Re: RyuShinji] #185388
02/24/08 09:36
02/24/08 09:36
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
afaik there is no easy way to do this, because trace and scan are pretty different.
scan: scans an area around an entity, the dimension of this area is given by that vector

trace: kind of shooting a beam into a single direction to receive the direction to a obstacle or find out about the existence of an entity on the way from the trace start to the trace end.

As you can see this cannot be easily convert.
In scan you pass a vector which is a dimension (describes a spherical space around the location of the scan) and in the trace instruction you pass two vectors which are each a specific location in the 3d world space.

Re: How Can This Be Converted To "Trace"? [Re: Xarthor] #185389
02/25/08 06:32
02/25/08 06:32
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
Here are two possible options you could try. One ist to set the flag USE_BOX which gives you a "thick" beam where the thickness is determined by the "me" entity, which is the otiginating entity by default. It will still only be a beam in a single direction though.

The second possibility is if you need to trace in a conal direction as you suggest, you need to script a trace sequence where your traces are sent with one or more degrees angle differences. This will take alot of computing power and may be too slow for your intended use, but it will accomplish sometnig that is is similar to a scan cone.

cheers


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