Normally, most people use view entity.
I'm not sure how can you see your entity with the above
code, anyway, you can try the following codes :
Code:
VECTOR temp1;
action fire_weapon()
{
weap_uzi.pan = -80;
weap_uzi.tilt = -5;
while(1)
{
weap_uzi.x = camera.x + 75;
weap_uzi.y = camera.y + 175;
weap_uzi.z = camera.z - 40;
vec_diff(temp1,weap_uzi.x,camera.x);
vec_set(weap_uzi.x,temp1.x);
vec_rotate(weap_uzi.x,camera.pan);
vec_add(weap_uzi.x,camera.x);
weap_uzi.pan = camera.pan - 80;
weap_uzi.tilt = camera.tilt - 5;
wait(1);
}
}