14 lines
299 B
Plaintext
14 lines
299 B
Plaintext
#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);
|
|
}
|
|
|