Rune_PRC8/_module/nss/vat_ipvesonic.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

15 lines
355 B
Plaintext

#include "x2_inc_itemprop"
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
if (!GetIsObjectValid(oItem)) return;
itemproperty ipAdd = ItemPropertyVisualEffect(ITEM_VISUAL_SONIC);
IPSafeAddItemProperty(oItem, ipAdd, 0.0, X2_IP_ADDPROP_POLICY_REPLACE_EXISTING, TRUE, TRUE);
}