Jump to content

About objectreference functions enable/disable/reset used on multiple objects


aqqh

Recommended Posts

Hello

 

I need an function that enables (or disables or reset) and object which is placed by my mod

activator is an MCM toggle button

 

I already did that for single objects - its working exactly as i wanted - problem is i added those objects as properties one by one.

There is like 40 of them already - and by the time this mod reaches final stage it would be 100+.

So doing it one by one doesn't sound like good idea.

 

Can i link those objects somehow?

Like for example parent-child reference that disabling one object in some location would disable all others is the same location?

Or some Alias? Keyword? Functions refuse to compile when i try to use these - says enable (for example) function not found even if my scripts extends objectreference.

 

Please help a rookie modder in need :)

Link to comment
Share on other sites

Like for example parent-child reference that disabling one object in some location would disable all others is the same location?

 

Exactly. You answered your own question. But note that any object tied to an enable parent can't get enabled or disabled through script or console commands anymore.

 

 

http://www.creationkit.com/Reference#Enable_Parent

Edited by Ghaunadaur
Link to comment
Share on other sites

  • Recently Browsing   0 members

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