Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Item Use SFX for "Custom Item Class" Items

1 replies · 1,061 views · Started 17 December 2007

The sound FX that is supposed to play when you use an item does not play if that item's class is of the "Custom Item Class" variety. For example, I have a custom item class for the cane of somaria. I loaded that script & it works just fine, even consuming magic. And what not, however, it does not play the sound effect when i use it.

If i change the item class, however, say to Wands for example, it does however play the sound effect, but then it also causes the wand stab sprite as well as the firing of magic, which I do not want & it doesn't allow me to have both a Magic Wand & the Cane of Somaria in the subscreen at once (at least not at the moment).

Just do a PlaySound command, giving it the UseSound variable of that item.

What? There is no UseSound variable in ZScript?

*type* *type* *type*

There is now.

Fixed.