#include "x2_inc_itemprop" //The include is for the IPSafeAddItemProperty function //Makes the PC speaker's onhand weapon glow electrically. Doesn't affect //the damage it deals, and it will only work on melee weapons void main() { object oPC = GetPCSpeaker(); object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC); if (!GetIsObjectValid(oItem)) return; itemproperty ipAdd = ItemPropertyVisualEffect(ITEM_VISUAL_COLD); IPSafeAddItemProperty(oItem, ipAdd); }