Thanks, I have a full AlcScript for the animation.
I have solved the problem for the first part; I did not set a waiton to 0. So now the start is ok, but when I want to return, the animation of the avatar works, only the platform won't move anymore.
I use the following script for the button and platform;
- Code: Select all
LiftButton:
physical:
subworld: Lift
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: LiftButtonRegion
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: MoveLift
Lift:
type: subworld
animations:
- name: AnimLift
autostart: 0
loop: 0
LiftFloor:
physical:
subworld: Lift
logic:
actions:
- type: responder
name: MoveLift
responder:
states:
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:PushTheButton
callbacks:
- marker: TouchButton
receiver: respondermod:MoveLift
user: 0
waiton: -1
- type: animcmdmsg
params:
receivers:
- 006D:Lift
animname: AnimLift
cmds:
- setforewards
- continue
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:LiftButtonSndEm
cmds:
- play
- setvolume
volume: 1
waiton: -1
nextstate: 1
waittocmd:
- key: 0
msg: 0
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:PushTheButton
callbacks:
- marker: TouchButton
receiver: respondermod:MoveFloor
user: 0
waiton: -1
- type: animcmdmsg
params:
receivers:
- 006D:Lift
animname: AnimLift
cmds:
- setbackwards
- continue
waiton: 0
- type: soundmsg
params:
receivers:
- 0011:LiftButtonSndEm
cmds:
- play
- setvolume
volume: 1
waiton: -1
nextstate: 0
waittocmd:
- key: 0
msg: 0
curstate: 0
flags:
- detecttrigger
I think there is a mistake somewere, but I can't find it.
Regards,
Frits