View Single Post
Old 05-19-2013, 02:37 PM   #3
supreme kotor
@supreme kotor
Junior Member
supreme kotor's Avatar
Join Date: Mar 2013
Location: I'm lost.
Posts: 326
Current Game: Modding.. Wait is that a game?
Fallen Gaurdian nailed the first script but if your NPC was doing another action I wouldn't use the second script might I suggest just taking the belt away from the NPC?

void main ()

object oNPC = GetObjectByTag("my_npc");
object oArmor = GetItemInSlot(INVENTORY_SLOT_BELT,oNPC); 
AssignCommand(oNPC, ActionUnequipItem(oArmor, TRUE));

Current WIP: Learning to mod Kotor

Last edited by supreme kotor; 05-19-2013 at 02:47 PM.
supreme kotor is offline   you may: quote & reply,