Jump to content

[scripting] adding and removing all items from players inventory


Korodic

Recommended Posts

As the title states, I need the default code on how to do this. I'm looking for a speedy response if possible, if not I'll be searching for it anyways. Figured someone must have done this already though. :thumbsup:
Link to comment
Share on other sites

Alias_PlayerGearContainerHidden.GetReference().RemoveAllItems(Alias_PlayerGearContainer.GetRef(), true)

Alias_PlayerGearContainerHidden.GetActorRef().SetPlayerTeammate(false, false)

 

I think I can just use "Remove all items" to a container or NPC and then use remove all items on that NPC too. I doubt it works for quest items like Oblivion... Do you remember if you had your quest items or not? Is there a way to remove those too?

 

EDIT: never mind found it :)

 

Game.GetPlayer().RemoveAllItems(abRemoveQuestItems = true)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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