Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,038 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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