3ldr1tch Posted December 2, 2010 Share Posted December 2, 2010 Is there an easy way through geck to UNEQUIP (NOT REMOVE) an npcs (or the players) armour and clothing? I know npc.unequipItem can be used to unequip a specific item, but how would I look to see what an npc is wearing to unequip it? I need to do something like:- loop through the npcs equipped clothesget a reference to each item and call npc.unequipitem (itemref) 1 I'm not sure how to do this in geck. Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted December 2, 2010 Share Posted December 2, 2010 It's a lot easier to do refid.removeallitems containerref That will take everything and put it in the specified container. Then you can do the opposite to put them back. Link to comment Share on other sites More sharing options...
thc1234 Posted December 2, 2010 Share Posted December 2, 2010 NVSE required short iIndex ref rItem label 0 set rItem to rActor.GetEquippedObject iIndex if (rItem != 0) rActor.UnEquipItem rItem 0 1 endif if (iIndex < 19) set iIndex to iIndex + 1 goto 0 endif Link to comment Share on other sites More sharing options...
3ldr1tch Posted December 2, 2010 Author Share Posted December 2, 2010 Thanks for the replies. I'll look into implementing method 1 so people can use the mod without installing NVSE. Link to comment Share on other sites More sharing options...
Recommended Posts