Camera POV

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Camera POV

Postby andylegate » Tue Mar 04, 2008 2:06 pm

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?
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Camera POV

Postby D'Lanor » Tue Mar 04, 2008 2:43 pm

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()
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Camera POV

Postby andylegate » Tue Mar 04, 2008 3:04 pm

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.
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am


Return to Building

Who is online

Users browsing this forum: No registered users and 4 guests