ang_add or ang_rotate is what you need for rotating an entity about it's own axis, rather than the world axis. For instance

ang_add(my.pan,vector(time,0,0));

or

ang_rotate(my.pan,vector(time,0,0));

Both instructions only differ in the order the angles are added.