15 lines
355 B
Plaintext
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);
|
|
|
|
}
|
|
|