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