Get the reference of a equipped item?

Post » Thu Apr 07, 2011 7:56 pm

Hi,
is it possible to get the reference ID (not the base object ID) of a currently equipped item? If its possible, how can i get it through a function?
User avatar
maria Dwyer
 
Posts: 3422
Joined: Sat Jan 27, 2007 11:24 am

Post » Thu Apr 07, 2011 9:03 pm

I'd have to pick the scripting apart if I still have it, but it seems to me I did this in a script on a giant deathclaw in Path of the Gunslinger to see if the player had a certain gun equipped...but then again I'm not sure if I called the exact object reference or just the base ID.

If nobody else answers you satisfactorily, lemme know and I'll hunt down that script if I can and poke at it with a sharp stick.
User avatar
tiffany Royal
 
Posts: 3340
Joined: Mon Dec 25, 2006 1:48 pm

Post » Fri Apr 08, 2011 2:34 am

No. There are no meaningful references for objects in inventory, only temporary ones which are only accessible from the object's own script.
User avatar
lucile
 
Posts: 3371
Joined: Thu Mar 22, 2007 4:37 pm

Post » Thu Apr 07, 2011 3:07 pm

No. There are no meaningful references for objects in inventory, only temporary ones which are only accessible from the object's own script.


Yep. Sorry Mister J. Talkie knows his stuff. I did some checking and yeah, I was just latching the actual baseID. What are you trying to do? maybe we can help find another avenue.
User avatar
meg knight
 
Posts: 3463
Joined: Wed Nov 29, 2006 4:20 am

Post » Thu Apr 07, 2011 11:43 pm

No. There are no meaningful references for objects in inventory, only temporary ones which are only accessible from the object's own script.


Thats sad but no super big problem. Then i have to use the base id of the object and make a little workaround.
User avatar
Samantha Mitchell
 
Posts: 3459
Joined: Mon Nov 13, 2006 8:33 pm


Return to Fallout: New Vegas