Alcscript Madness
Posted: Sun Aug 03, 2008 10:55 am
Okay, here's my problem. I have an object that I want to click and trigger a python script. At the same time, I want to play an avatar animation as it does so. Here's my problem though: The python script it is intended to trigger requires it to read the name of the object, and the name of the LinkInPoint closest to the object. So what I've done is create this alscript:
Now I'm sure I've done something wrong, the object is clickable and activates the region the way I want it to, but I don't know where to put the avatar animation stuff, or where to put the stuff to reference my 3dsound for the object once its clicked. (Also I think that there's to many action fields in there. Basically I need help cleaning this up, as this is going to be my first complicated age.
- Code: Select all
clkTempleHotSpot01r:
visual:
render: false
logic:
modifiers:
- tag: AutoClick
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: HotSpotRgn01
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: pythonfile
ref: $clkHotSpot01
actions:
- type: pythonfile
tag: HotSpot01
pythonfile:
file: TempleHotSpots
parameters:
- type: string
value: ChurchofIllumination
- type: string
value: LinkInPointDefault
- type: activator
ref: logicmod:$AutoClick
- type: string
value: clkTempleHotSpot
Now I'm sure I've done something wrong, the object is clickable and activates the region the way I want it to, but I don't know where to put the avatar animation stuff, or where to put the stuff to reference my 3dsound for the object once its clicked. (Also I think that there's to many action fields in there. Basically I need help cleaning this up, as this is going to be my first complicated age.