Jump to content

Script to enable disabled objects


CaptainRC

Recommended Posts

Yay, a question that I think I can answer! A first for me.

 

In the quest edit screen, add the object to the quest aliases, make sure the 'allow disabled' box is checked.

 

On the quest stage tab make sure the proper stage has the papyrus fragment:

 

Alias_aliasname.GetReference().Enable()

 

and I think that should do it.

Edited by Xenogeist
Link to comment
Share on other sites

Inside the code fragment (little white box inside each quest stage...)

 

MyReference.Enable()

 

My reference is given a value in the property window. The TYPE it should be given is "Object Reference".

 

"MyReference" is a variable name... therefore can be named anything you want. So long as you assign it the proper value.

Link to comment
Share on other sites

  • 5 months later...

Yay, a question that I think I can answer! A first for me.

 

In the quest edit screen, add the object to the quest aliases, make sure the 'allow disabled' box is checked.

 

On the quest stage tab make sure the proper stage has the papyrus fragment:

 

Alias_aliasname.GetReference().Enable()

 

and I think that should do it.

 

 

I tried this but when the relevant quest stage was reached my door just stays disables, also can you give more info about creating the alais: fill type (at or in) easy, hard etc.?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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