scriptName OGMKvatchGateOpenerScript
short opened
short path
;Controls raising and lowering of Kvatch Castle Gates
begin onActivate
if IsActionRef player == 1
if opened == 0
OGMTorhebel001.playgroup forward, 1
OGMFallgatter001.playgroup forward, 1
set opened to 1
;if lever is being used for the first time, update the quest stage
;Have NPCs Evaluate Packages
elseif opened == 1
OGMTorhebel001.playgroup backward, 1
OGMFallgatter001.playgroup backward, 1
set opened to 0
endif
endif
end