after playing around I found out that the first number in the Origin array used int he angles actually alters the entities pitch (looking up and down), the second number alters the rotation (left and right) and the third number is the tilt (leaning left and right)
so the
Code:
if (closestOrigin[0] < sentryOrigin[0])
newAngle[1] -= 180
says that if the closest origin is below the sentry, then move the sentry 180 degrees around. But it seems for some reason to do that when the closestOrigin[1] theoretically becomase less then sentryOrigin[1] O.o
gah,
__________________