Here is the script on the door:
scn FrostcragSpireHiddenDoorSCRIPT01
short open
short dustFall
ref mySelf
ref myTarget
float timer
short open
short busy
begin onActivate
set mySelf to getSelf
set myTarget to getParentref
if isActionRef player == 0
if open == 0
mySelf.pms effectshockshield
playgroup forward 0
set open to 1
set timer to 1
set busy to 1
endif
endif
end
begin gameMode
if open == 1
if timer > 0
set timer to timer - getsecondspassed
endif
if timer <= 0 && dustFall == 0
myTarget.activate mySelf 1
set dustFall to 1
endif
endif
; Get rid of effect when wall stops moving
if busy == 1 && IsAnimPlaying == 0
mySelf.sms effectshockshield
set busy to 0
endif
end
I anolysed the script, but i dont really understand how it work. How the door move? I see no founction that can move object in the script.