The only problem now is i cant get the right side of the enemy to face the camera.
Duh. You are telling it to point at 0,0,0.And your
TurnEntity terror,0,camera,0bit of code is actually totally screwed up. The reason is because you are setting the entities Yaw rotation to equal the cameras HANDLE (which could be ANYTHING), not the cameras yaw rotation. In order to set it to the cameras yaw rotation, you would type it in like:
TurnEntity terror,0,EntityYaw(camera),0.
But anyways, how your code should have looked should probably have been like so:
;move enemy If Dist<5 And spotted=True PointEntity terror, camera RotateEntity terror, EntityPitch(terror), 0, 0 ;no yaw rotation nor roll rotation MoveEntity terror,0 ,0 ,0.05 EndIfNote that I changed your spotted variable to an integer. This is not necessary but is good programming practice since integers are much faster to use than strings.
By the way, What are the forum codes?