gooser Posted May 30, 2014 Posted May 30, 2014 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
Ashal Posted May 30, 2014 Posted May 30, 2014 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.
gooser Posted May 30, 2014 Author Posted May 30, 2014 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.
gooser Posted May 30, 2014 Author Posted May 30, 2014 Also, from what I've read of Form.TempClone() it definitely doesn't seem to fit my needs at all. But thanks...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.