My quest giver NPC (tag:spiderman) has a non-stealable, non-droppable instance of "gen_im_cth_com_c03" in his inventory.
Here is my script, which I am running from the final dialogue line:
#include "plot_h"
object oPC = GetHero();
object oNPC = UT_GetNearestCreatureByTag(oPC, "SPIDERMAN", 0);
object oItem = GetObjectByTag("gen_im_cth_com_c03", 1);
void main()
{
//Get rid of Spider Man's clothes from PC inventory
UT_RemoveItemFromInventory(R"spider_man_clothes.uti",1);
//Equip Spider Man's clothing
EquipItem(oNPC, oItem);
}
I know it's running, because the recovered clothing is removed from the PC's inventory, it just never "appears" back on the quest giver. So what am I doing wrong here?
Thanks in advance.
Modifié par BillHoyt, 12 avril 2010 - 05:38 .





Retour en haut







