Page 1 of 1

Bench Camera?

PostPosted: Mon Sep 01, 2008 9:27 pm
by zib_redlektab
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

Re: Bench Camera?

PostPosted: Mon Sep 01, 2008 9:42 pm
by Lontahv
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

Re: Bench Camera?

PostPosted: Mon Sep 01, 2008 10:35 pm
by Trylon
Just in case it isn't a copy-paste problem, the bottom few lines of that code you posted aren't indented properly.

Re: Bench Camera?

PostPosted: Tue Sep 02, 2008 8:12 am
by zib_redlektab
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?

Re: Bench Camera?

PostPosted: Tue Sep 02, 2008 3:53 pm
by GPNMilano
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.