PRC8/nwn/trunk/scripts/prc_unequip_cw.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

20 lines
580 B
Plaintext

// This script unequips the PC's creature weapons, if any (for debugging purposes).
// Called from debug console only.
void main()
{
object oPC = OBJECT_SELF;
object oWeapCR = GetItemInSlot(INVENTORY_SLOT_CWEAPON_R,oPC);
if (GetIsObjectValid(oWeapCR))
ActionUnequipItem(oWeapCR);
object oWeapCL = GetItemInSlot(INVENTORY_SLOT_CWEAPON_L,oPC);
if (GetIsObjectValid(oWeapCL))
ActionUnequipItem(oWeapCL);
object oWeapCB = GetItemInSlot(INVENTORY_SLOT_CWEAPON_B,oPC);
if (GetIsObjectValid(oWeapCB))
ActionUnequipItem(oWeapCB);
}