Jump to content

auto closing doors (not locking)


Darios81

Recommended Posts

This script, attached to the door, should work

 

 

Scriptname AutoCloseDoor extends ObjectReference

Event OnInit()
SetOpen(false)							;when script starts, the door gets closed							 
EndEvent

Event OnActivate(ObjectReference akActionRef)
int openstate = self.GetOpenState()
if(openstate == 1 || openstate == 2)	                        ;door is open or opening
	utility.wait(180)					;wait 3 minutes
	SetOpen(false)						;close door
endif
EndEvent

Link to comment
Share on other sites

  • 4 months later...

i could say it before i tried With my Luck, never get anything to work on 1 try. tried for a coup of houres. this is what i did. saved game in another cell than script door are. whent in cell view opend byohhlakeviewmanor chose edit on any door and clicket on scripts. added New script. copyed all text from above from top to bottom With Scriptname... and without also once.

 

and the F door still not closeing :/

Link to comment
Share on other sites

You're not making many words, eh? That's cool, but it's hard to understand what you are actually trying to do. Just to clarify: this script is not for locking a teleport door, it's for a door within an interior cell to get visually closed. :armscrossed:

 

 

sorry was hyper and tierd of fail :P

 

1. from cell view i choosing Lake View Manor Heartfire house.

2. Edit on all the doors interior ofcource. the last thing you can choose is scripts, same place where you csn lock the door add key etc

3. choose New Script and add your older input of script above.

4. load a save away from added scripts on door and travel to it and test.

 

right ??

 

not working :(

Link to comment
Share on other sites

  • Recently Browsing   0 members

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