My "Basic" ai code has a problem

Blitz3D Forums/Blitz3D Beginners Area/My "Basic" ai code has a problem

Sorted it (Reset the Pitch and yaw to zero each loop)

;move enimie
If Dist<5 And spotted$="True"
PointEntity terror,camera
MoveEntity terror,0 ,0 ,0.05
EndIf

RotateEntity terror, 0, 0,0
TurnEntity terror,0,camera,0

The only problem now is i cant get the right side of the enemy to face the camera.