Posted By: Valdsator
c_trace in certain direction - 02/07/11 21:54
I looked through the manual and found out how to have something c_trace in the direction the entity is facing. For some reason though, when the entity does this, it immediately detects something with it's trace. But, when I put on IGNORE_WORLD, it doesn't detect it anymore.
Here's my code:
Is this doing something different? I assume it's setting a c_trace from the origin of the entity, to 5 units in the direction the entity is facing. What am I doing wrong?
Thanks in advance.
Here's my code:
Code:
c_trace(my.x,vec_rotate(vector(5,0,0),my.pan),IGNORE_ME|IGNORE_YOU);
Is this doing something different? I assume it's setting a c_trace from the origin of the entity, to 5 units in the direction the entity is facing. What am I doing wrong?
Thanks in advance.