Aller au contenu

Photo

removing items from inventory?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Xorfos

Xorfos
  • Members
  • 3 messages
so i read everywhere about AddItemToInventory, but is there a similar line for removing items from inventory?

i'm trying to make a script that will take a set of armor from the pc and replace it with a new set. seems like it should be simple but i cant find anything on it, but maybe i just dont know where to look :huh: i suppose i could just spawn the new set and have the questgiver tell pc to get rid of the old set themselves, but that seems silly.

edit: nvm, figured it out! UT_RemoveItemFromInventory(R"whatever_item.uti", 1); knew it had to be something just as easy as the additem one.

Modifié par Xorfos, 28 décembre 2009 - 01:06 .


#2
Jopon

Jopon
  • Members
  • 17 messages
yeah fairly easy two helpful functions will be

#include "placeable_h"

GetItemsInInventory

RemoveItem

Getitemsininventory will be useful if your not sure what type of armor the person might have already that you want to replace.

Modifié par Jopon, 28 décembre 2009 - 04:14 .