Jump to content

Programmatically create new Forms?


gooser

Recommended Posts

Posted

Is it possible to control the lifecycle of Form objects in a script? For example inside another form, or ReferenceAlias, do something like:

 

Form form = new Form() 

 

?

 

Or is CK practically the only real 'factory' of objects?

 

Thanks

Posted

No, the form has to exist via esp/esm.

 

You could maybe finagle something to work similarly by using Form.TempClone() on existing objects though.

Posted

Thanks Ashal, that is what I thought but I had to check. I did a quick brute search for " new " in the SL source and couldn't find any examples in your code of newing up an instance of a Form, although newing up instances of ReferenceAlias seems just fine.

 

It may have seen like an obscure query, but what I wanted to use is the State capability in Papyrus to manage several concurrent sets of states - all belong to a custom ReferenceAlias. I really like State, love how you are using it in SL, etc. 

 

Thanks.

Posted

Also, from what I've read of Form.TempClone() it definitely doesn't seem to fit my needs at all. But thanks...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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