Posted By: dracula
using c_trace ?? - 01/31/09 20:34
c_trace ( my.pan, enemy.x, IGNORE_ME|IGNORE_PASSABLE|ACTIVATE_SHOOT );
1. Why *does* the above compile when enemy.x isn't a vector (out of curiosiy) ?
2. What I am trying to learn is how to get my model to c_trace a static model. When I pan my model, it hits the target regardless of its pan .
action shooter()
{
while(1)
{
vessel.y += 15 * (key_d-key_a) * time_step;
vessel.x += 15 * (key_w-key_s) * time_step;
vessel.pan += 10 * (key_z-key_x) * time_step;
wait(1);
if(key_c)
c_trace ( vessel.pan, enemy.x, IGNORE_ME|IGNORE_PASSABLE|ACTIVATE_SHOOT );
wait(1);
}
}
To sum up, I can't target my enemy, I alway hit it ?
thanks
drac
1. Why *does* the above compile when enemy.x isn't a vector (out of curiosiy) ?
2. What I am trying to learn is how to get my model to c_trace a static model. When I pan my model, it hits the target regardless of its pan .
action shooter()
{
while(1)
{
vessel.y += 15 * (key_d-key_a) * time_step;
vessel.x += 15 * (key_w-key_s) * time_step;
vessel.pan += 10 * (key_z-key_x) * time_step;
wait(1);
if(key_c)
c_trace ( vessel.pan, enemy.x, IGNORE_ME|IGNORE_PASSABLE|ACTIVATE_SHOOT );
wait(1);
}
}
To sum up, I can't target my enemy, I alway hit it ?
thanks
drac
