Author Topic: Remove ItemData::onAdd sound [Solved]  (Read 613 times)

How would I do this?
« Last Edit: March 29, 2014, 03:32:10 PM by tommybricksetti »

You mean the beep sound that gets played when you pick up an item? I'm pretty sure that's client sided, called from the client command msgItemPickup or whatever its called. Not totally sure though.

Code: [Select]
%obj.tool[%a] = %itemID;
%obj.weaponCount++;
messageClient(%obj.client,'MsgItemPickup','',%a,%itemID);
This is what I'm doing. onAdd seems to be called.

messageClient(%cl, 'MsgItemPickup', '', %slot, %item, %silent);

MsgItemPickup is the sound

messageClient(%cl, 'MsgItemPickup', '', %slot, %item, %silent);
And always make sure %item is an ID, as client-sided datablocks have no names.

messageClient(%cl, 'MsgItemPickup', '', %slot, %item, %silent);
This.