Jump to content

Script request


Rattlerx5150

Recommended Posts

That's also possible. If you want to use a button for these doors, this script should work:

 

 

Scriptname _Test extends ObjectReference  

ObjectReference Property RuinsDoor01  Auto
ObjectReference Property RuinsDoor02  Auto
ObjectReference Property DwemerDoor  Auto


Event OnActivate(ObjectReference akActionRef)
	if RuinsDoor01.GetOpenState() <= 2
		RuinsDoor01.PlayGamebryoAnimation("close", true)
	endif
	if RuinsDoor02.GetOpenState() <= 2
		RuinsDoor02.PlayGamebryoAnimation("close", true)
	endif
	if DwemerDoor.GetOpenState() <= 2
		DwemerDoor.PlayGamebryoAnimation("close", true)
	endif
		RuinsDoor01.SetLockLevel(100)
		RuinsDoor02.SetLockLevel(100)
		DwemerDoor.SetLockLevel(100)
		Utility.wait(2)
		RuinsDoor01.Lock()
		RuinsDoor02.Lock()
		DwemerDoor.Lock()
EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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