Bench Camera?

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!

Bench Camera?

Postby zib_redlektab » Mon Sep 01, 2008 9:27 pm

Is it possible to change what camera is used when the avatar is sitting on a bench? I have a bench sticking out from a wall, and when the avatar sits on it, the camera zooms into the wall and all you can see is grey. I made my own camera elsewhere, is it possible to use alcscript to switch to that camera when the avatar sits, and go back to normal when he stands up? :?:

edit: I tried the following code, but it didn't work...
Code: Select all
Bench1:
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BenchRgn1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:Bench1
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1
          - type: camera
       camera:
      messages:
         - newcam: BenchCam1
Lurker extraordinaire!
http://www.zibland.com
User avatar
zib_redlektab
 
Posts: 240
Joined: Sat Sep 29, 2007 6:24 am
Location: Avoiding Direct Sunlight

Re: Bench Camera?

Postby Lontahv » Mon Sep 01, 2008 9:42 pm

What I do it have a region right where the sit-spot is. This most likely isn't the best way to do it but it seems to work. It can get a bit messy. :P
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).
User avatar
Lontahv
Councilor of Artistic Direction
 
Posts: 1331
Joined: Wed Oct 03, 2007 2:09 pm

Re: Bench Camera?

Postby Trylon » Mon Sep 01, 2008 10:35 pm

Just in case it isn't a copy-paste problem, the bottom few lines of that code you posted aren't indented properly.
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Trylon
 
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
Location: Gone from Uru

Re: Bench Camera?

Postby zib_redlektab » Tue Sep 02, 2008 8:12 am

The actual code looks like this:

Code: Select all
Bench1:
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BenchRgn1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:Bench1
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1
        - type: camera
         camera:
            messages:
              - newcam: BenchCam1


How should it be indented?
Lurker extraordinaire!
http://www.zibland.com
User avatar
zib_redlektab
 
Posts: 240
Joined: Sat Sep 29, 2007 6:24 am
Location: Avoiding Direct Sunlight

Re: Bench Camera?

Postby GPNMilano » Tue Sep 02, 2008 3:53 pm

Code: Select all
Bench1:
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BenchRgn1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:Bench1
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1
          - type: camera
            camera:
                messages:
                  - newcam: BenchCam1


Thats how it should be indented.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am


Return to Building

Who is online

Users browsing this forum: No registered users and 4 guests

cron