Page 1 of 1

Camera POV

PostPosted: Tue Mar 04, 2008 2:06 pm
by andylegate
Hey, is there a flag used in the ALCscripting, so that when a avie enters a camera region, it forces the camera from 1st person view to the camera's 3rd person view?

Re: Camera POV

PostPosted: Tue Mar 04, 2008 2:43 pm
by D'Lanor
I think Cyan usually does that with Python.

Code: Select all
CamActivator = ptAttribActivator(1, 'Camera activator')

    def OnNotify(self, state, id, events):
        if (not state):
            return
        if (id == CamActivator.id):
            cam = ptCamera()
            cam.undoFirstPerson()
            cam.disableFirstPersonOverride()

You have to tie an activator to the camera. I am not sure what the advanced alcscript for that would be.

That last Python line btw is optional and makes sure the player stays in 3rd person. It must be undone after the event :

Code: Select all
        cam = ptCamera()
        cam.enableFirstPersonOverride()

Re: Camera POV

PostPosted: Tue Mar 04, 2008 3:04 pm
by andylegate
Blah!

Not enough time for me to figure that one out. That's okay, what I wanted to do does work as long as you're in 3rd person all ready. I did get the camera to "Snap" into place instead of pan by using the flag - panicvelocity.