
<clickable>:
logic:
modifiers:
- tag: AutoClick
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: <click region>
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: pythonfile
ref: $BoolToggle
- type: oneshot
ref: $AutoClick
actions:
- type: pythonfile
tag: BoolToggle
pythonfile:
file: xAgeSDLBoolToggle
parameters:
- type: activator
ref: logicmod:$AutoClick
- type: string
value: DoorOpen
- type: skip
- type: skip
- type: string
value: DoorOpen
- type: pythonfile
tag: BoolRespond
pythonfile:
file: xAgeSDLBoolRespond
parameters:
- type: string
value: DoorOpen
- type: responder
ref: $AnimOpen
- type: responder
ref: $AnimClose
- type: bool
value: false
- type: bool
value: true
- type: responder
tag: AnimOpen
responder:
states:
- cmds:
- type: animcmdmsg
params:
receivers:
- 006D:<animated object>
animname: Open
cmds:
- continue
waiton: -1
nextstate: 1
waittocmd: 0
curstate: 0
flags:
- detecttrigger
- type: responder
tag: AnimClose
responder:
states:
- cmds:
- type: animcmdmsg
params:
receivers:
- 006D:<animated object>
animname: Close
cmds:
- continue
waiton: -1
nextstate: 1
waittocmd: 0
curstate: 0
flags:
- detecttrigger
- type: oneshot
tag: AutoClick
oneshot:
animation: <animation name>
seektime: 1.0
remote: <animtarget>
Users browsing this forum: No registered users and 2 guests