Jump to content

Noobz questions


Nibel8

Recommended Posts

well,im noob in TES scripts

scp below supposed to open AND close gate but he only open gate...any help to make it work ? :sweat:

scriptName OpenGate1C

short opened

begin onActivate

if IsActionRef player == 1

if opened == 0

GateOpenet1.playgroup forward, 1
Castlemaingate1.playgroup forward, 1
set opened to 1

else

elseif opened == 1
GateOpenet1.playgroup forward, 1
Castlemaingate1.playgroup forward, 1
set opened to 0
endif

end

Link to comment
Share on other sites

you've got a spurious else in there.

 

get rid of either that lone else or the line elseif opened == 1 since they do essentially the same thing here.

 

then close your second if with an endif just before end.

 

and you should be okay.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...