Nibel8 Posted August 26, 2009 Share Posted August 26, 2009 well,im noob in TES scriptsscp 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 More sharing options...
hex0ff Posted August 26, 2009 Share Posted August 26, 2009 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 More sharing options...
Nibel8 Posted August 26, 2009 Author Share Posted August 26, 2009 heh,at least now it closes,but now other problem pops up xD after gate closed they instantly opens Link to comment Share on other sites More sharing options...
Recommended Posts