Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Remove Clothes Script

Page: 1 of 1
 Trex
12-15-2008, 2:01 PM
#1
Hopefully this is a straight forward request.

Can anyone give a script to remove the PC's clothes (such as when taken prisoner in Kotor1). I can't seem to find one on the forum or in the source scripts.

It's for Kotor2 if it makes a difference.

Thanks in advance.
 zbyl2
12-15-2008, 2:43 PM
#2
ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_*,G etFirstPC()));
You can change this into INVENTORY_SLOT_HEAD, INVENTORY_SLOT_BODY etc. depends on what you want to unequip, and GetFirstPC() into any NPC you want ;)
 Trex
12-15-2008, 5:01 PM
#3
ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_*,G etFirstPC()));
You can change this into INVENTORY_SLOT_HEAD, INVENTORY_SLOT_BODY etc. depends on what you want to unequip, and GetFirstPC() into any NPC you want ;)

Thank you very much, sir! :)
Page: 1 of 1