PoA_PRC8/_module/nss/removewpnevis.nss

14 lines
299 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
#include "x2_inc_itemprop"
//Remove visual effect from PC's right handed weapon
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
if (!GetIsObjectValid(oItem)) return;
IPRemoveMatchingItemProperties(oItem, ITEM_PROPERTY_VISUALEFFECT, -1);
}