Disabling object references

Post » Thu Nov 26, 2009 10:20 am

What I am trying to do is disable something I gave a reference editor id to.

In this case its some junk in nipton. I created one persistent reference and enabled parent on everything I want to eventually disable. The issue is when I try running np1.disable I get the error "only object references and variables are allowed in this context". Np1 is what I named the object I want to remove. This is when I tried to remove it from inside the game because my script wasn't disabling the object.

It has an base object id of : wwskeletonberu 0016192D
reference editor id: np1 (What I gave it) 00161988

So anyone have an idea of what I am doing wrong? :-)
User avatar
Richus Dude
 
Posts: 3381
Joined: Fri Jun 16, 2006 1:17 am

Post » Thu Nov 26, 2009 8:41 am

What kind of object is np1? That is not clear without trying to dig up that FormID.

Most things disable just fine, I'm curious as to what kind of thing Can't!

Miax
User avatar
Amy Melissa
 
Posts: 3390
Joined: Fri Jun 23, 2006 2:35 pm

Post » Thu Nov 26, 2009 7:57 am

Since you mentioned the magic word "enable parent", I'm guessing that NP1 is not the parent object in your array of objects that are all depending on a single parent object.

(On a side note... I suggest you use longer EditorRefIDs with some sort of unique prefix where possible, like "MavkielNP1".)
User avatar
TRIsha FEnnesse
 
Posts: 3369
Joined: Sun Feb 04, 2007 5:59 am


Return to Fallout: New Vegas