Page 1 of 1

Howto: Region triggered Python

PostPosted: Fri Sep 26, 2008 6:38 pm
by ddb174
I'm looking for a way to have some Python code triggered by the avatar entering a region:

Code: Select all
#tag is a local name used within this alcScript object.
LinkRegion:
    logic:
        actions:
          - type: pythonfile
            tag: linkaction
            pythonfile:
                file: dusttest
                parameters:
                  - type: string
                    value: EderDelin
        modifiers:
          - tag: linkmod1
            actions:
              - type: pythonfile
                ref: $linkaction
            activators:
              - type: objectinvolume
                remote: LinkRegion
                triggers:
                  - any



My python file dusttest.py, loads correctly, but never has a function called (I made sure to have the same event functions) when I go through the region.

Does anyone notice anything wrong?

Re: Howto: Region triggered Python

PostPosted: Fri Sep 26, 2008 6:54 pm
by D'Lanor
I posted something like that a long time ago. Let's see...

Here you go: viewtopic.php?f=18&t=1550

Re: Howto: Region triggered Python

PostPosted: Fri Sep 26, 2008 8:34 pm
by ddb174
Excellent; that does the job perfectly!