Files
HeroesStone_PRC8/_module/nss/torch_onunequip.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

16 lines
473 B
Plaintext

//::///////////////////////////////////////////////
//:: torch_OnUnEquip Rev. 2
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/* See "loc_inc_torches" for usage details
and author's info */
void main()
{
object oItem = GetPCItemLastUnequipped();
if (GetTag(oItem) == "NW_IT_TORCH001") // check if a torch was just unequipped
{
SetLocalInt(oItem, "TorchInHands", 0);
}
}