Jump to content

Create New Form Instance in Script


Recommended Posts

I guess perhaps I don't understand Papyrus as well as I had thought.



I've created a new class that extends ObjectReference. In another script, I would like to instantiate a new instance of my class. I thought I could just use something like:


MyExtendedClass objMyClass = new MyExtendedClass


However, the compiler chokes on this as it assumes I'm trying to use the New keyword to instantiate an array.



Hoping this is a simple syntax issue and not that Papyrus fundamentally prohibits generation of new script objects.


Link to comment
Share on other sites

  • Recently Browsing   0 members

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