ok let me start again what i would like is if the unit useing the script when it turns between south and east ie 90 - 180 it will activate but only when its between 90 - 180 the funchtion by toadlife is the same a useing _dir = Direction _unit
thanks tho but help still needed
the exsample i gave you at tom works but only with its under 180 this includes 0,1,2,3,4,5,6,7,8,9,10,11 and so on