UW2_PRC8/_module/nss/removewpnevis.nss

14 lines
299 B
Plaintext
Raw Permalink Normal View History

2023-09-25 20:24:01 -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);
}