Thank you for your reply, D'Lanor,
I assume the script on the Wiki is for buttons, but were do i put the callback etc in my Button script.
The script below is part of a puzzle in my new Age and so it's a little different as shown at the Wiki
- Code: Select all
SWDoor_1Button:
animations:
- name: SWdoor_1buttonclick
autostart: 0
loop: 0
logic:
modifiers:
- tag: AutoClick
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: Door_1ButtonRgn
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: pythonfile
ref: $BoolToggle
actions:
- type: pythonfile
tag: BoolToggle
pythonfile:
file: xAgeSDLBoolToggle
parameters:
- type: activator
ref: logicmod:$AutoClick
- type: string
value: Ashream_3ingang
- type: skip
- type: skip
- type: string
value: Ashream_3ingang
- type: pythonfile
tag: BoolRespond
pythonfile:
file: ashAgeSDLBoolRespondReset
parameters:
- type: string
value: Ashream_3ingang
- type: responder
ref: :Door_1Open
- type: responder
ref: :Door_1Close
- type: bool
value: false
- type: bool
value: true
Wodan944