Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (alibaba, vicknick), 1,492 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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