vec_for_angle(tmpLoc, my.pan);
vec_normalize(tmpLoc, 50);
vec_add(tmpLoc, my.x);
ent_create(..., tmpLoc, ...);
should work...
If the cube should be left or right the player add between line 1 and 2
vec_rotate(tmpLoc, xx); //(view manual)
Sry for my bad English!! I'm German!!
A7 Extra Edition
Intel Core i7-960 (4x3.2GHz), 8GB DDR3, 9800GT 1GB
My homepage:
www.ultitech.de