RemoveAllItems to an existing container

Post » Mon Mar 14, 2011 9:31 am

Hello,

I'm trying to figure how to use the player.removeallitems containerRef with my mod. I want to put all the player items into the existing cabinet in the room you can rent into the Atomic Wrangler casino but i cannot figure how to get the reference of this object. So far, ive been inspecting the cabinet in the renderwindow (cell FreesideAtomicWrangler), double clicked on the cabinet to add a custom reference editor id but my script wont compile : player.removeallitems myCustomRefId. Anyone know what im doing wrong?

Regards
User avatar
saharen beauty
 
Posts: 3456
Joined: Wed Nov 22, 2006 12:54 am

Post » Mon Mar 14, 2011 10:28 pm

What's the ID?
User avatar
Portions
 
Posts: 3499
Joined: Thu Jun 14, 2007 1:47 am

Post » Mon Mar 14, 2011 6:42 pm

my script wont compile : player.removeallitems myCustomRefId. Anyone know what im doing wrong?


Is that your whole script? You have to put this line inside a begin block of some kind, and attach it to an object. If you aren't using geck powerup, you should install that so that you can see the syntax errors. If you get an error message and cannot understand what it means, please post the whole script and the message.
User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Post » Mon Mar 14, 2011 8:27 pm

...add a custom reference editor id but my script wont compile...

Did you remember to check the "Persistent Reference" option after filling in your Reference Editor ID?
User avatar
Melanie
 
Posts: 3448
Joined: Tue Dec 26, 2006 4:54 pm

Post » Tue Mar 15, 2011 1:20 am

Did you remember to check the "Persistent Reference" option after filling in your Reference Editor ID?


Thank you sir! I forgot about that check box... Thanks again!
User avatar
Eire Charlotta
 
Posts: 3394
Joined: Thu Nov 09, 2006 6:00 pm


Return to Fallout: New Vegas