A simpler and quicker method ...
Stevie
Global PIVOT = createpivot() Function Point_Entity( entity, x#, y#, z# ) positionentity Pivot , x, y, z turnentity entity, deltapitch( entity, pivot ) , deltayaw( entity, pivot ) , 0 end function
Stevie