Woah.. thats complicated. :) Let me get this straight. You're using PVT as a pivot for the player. Then you're creating FWDCAM as a pivot for the camera, and parenting it to PVT. Then you're creating a camera and parenting it to FWDCAM which is parented to PVT?
Try eliminating the FWDCAM pivot altogether (backup your code first, because it'll take too long to change back afterward). The camera should be following PVT anyway, so theres no need for ANOTHER pivot, its useless and can just introduce problems. if fowardcam is active, parent the camera to PVT and just set the child in the correct position relative to PVT to get the view you want.
In addition, your forwardcam code is like this:
In the beginning you use fpparent to find the parent of fwdcam. Why is this? Because you just set the parent for fwdcam to 0 without using fpparent in the rest of the code there. Is there something you meant to do with that information and forgot to?
+BlackD
Try eliminating the FWDCAM pivot altogether (backup your code first, because it'll take too long to change back afterward). The camera should be following PVT anyway, so theres no need for ANOTHER pivot, its useless and can just introduce problems. if fowardcam is active, parent the camera to PVT and just set the child in the correct position relative to PVT to get the view you want.
In addition, your forwardcam code is like this:
Function MoveCamera() fparent=GetParent(fwdcam) EntityParent(fwdcam,pvt,True) dx#=EntityX(fwdcam) dy#=EntityY(fwdcam) dz#=EntityZ(fwdcam) r#=EntityRoll(fwdcam) p#=EntityPitch(fwdcam) y#=EntityYaw(fwdcam) If r# => 180 Then r# = r# - 360 If r# =< -180 Then r# = r# + 360 TurnEntity fwdcam,-p#,-y#,-r#*.03 TranslateEntity fwdcam,-dx*.1,-dy*.1,-(dz+10)*.5 EntityParent(fwdcam,0) End Function
In the beginning you use fpparent to find the parent of fwdcam. Why is this? Because you just set the parent for fwdcam to 0 without using fpparent in the rest of the code there. Is there something you meant to do with that information and forgot to?
+BlackD