Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 8,950 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Quick Question: Tracing and stuff #146295
08/06/07 20:52
08/06/07 20:52
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Hey guys,
I'm a bit confused about something and I was just wondering how I'd make this code scan in front of the object instead of downwards:
Code:
 
// detect walls infront of the user
function proj_scanfront(scandist)
{
// scan and store data into a local
var scanstore;
c_trace(my.x, vector(my.x, my.y, my.z + scandist), ignore_me + ignore_passable + scan_texture);

// reposition at the target
vec_set(scanstore, target);
vec_set(my.x, scanstore.x);
}



Its suppost to be for a player shooting a weapon.
Thanks for your interest and I hope to hear from you soon

-Bright


KAIN - Coming soon...
Re: Quick Question: Tracing and stuff [Re: Bright] #146296
08/07/07 05:13
08/07/07 05:13
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Code:

function proj_scanfront(scandist)
{
vec_set(temp,vector(scandist,0,0));
vec_rotate(temp,my.pan);
vec_add(temp,my.x);

c_trace(my.x, temp, ignore_me + ignore_passable + scan_texture);

// reposition at the target
vec_set(scanstore, target);
vec_set(my.x, scanstore.x);
}



Re: Quick Question: Tracing and stuff [Re: vlau] #146297
08/08/07 03:41
08/08/07 03:41
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Sweet as thanks man
*rates*


KAIN - Coming soon...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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