Code:
VECTOR temp;
VECTOR offset;
offset.x = [dist];
offset.y = [horizontal];
offset.z = [vertical];
//
proc_mode = PROC_LATE;
vec_set(temp, offset);
vec_rotate(temp, camera.pan);
vec_add(temp, camera.x);
vec_set(my.x, temp);
vec_set(my.pan, camera.pan);
angle_rotate(my.pan, vector(180,0,0)); // OPTIONAL: rotate's the entity 180 deg so it faces camera




xXxGuitar511
- Programmer