Scriptname zzzTrapDoorAct02Script extends ObjectReference  

Cell Property zzzTrapDoorActCell  Auto  

ObjectReference Property zzzTrapDoorActIn  Auto  

ObjectReference Property zzzTrapDoorActOut  Auto  

Event OnActivate(ObjectReference akActionRef)
	If (akActionRef.GetParentCell() != zzzTrapDoorActCell)
		zzzTrapDoorActOut.MoveTo(akActionRef)
		akActionRef.MoveTo(zzzTrapDoorActIn)
	Else
		akActionRef.MoveTo(zzzTrapDoorActOut)
	EndIf
EndEvent