Some badly written code...
Chances are this wouldn't work at all. *shrug*
Just trying to help.
P = CreatePivot() PositionEntity P,EntityX(Entity),EntityY(Entity),EntityZ(Entity) RotateEntity P,EntityPitch(Entity),EntityYaw(Entity),EntityRoll(Entity) If Upper(EntityClass(Entity)) = "MESH" Then ;this won't work in the majority of situations, trust me MoveEntity P,0,0,MeshDepth(Entity)/2 ;world 'front' ;MoveEntity P,0,MeshHeight(Entity)/2,0 ;world 'right' ;MoveEntity P,MeshWidth(Entity)/2,0,0 ;world 'top' EndIf
Chances are this wouldn't work at all. *shrug*
Just trying to help.