Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Skully Boots

Melee attack sounds not working, what am I doing wrong?

Recommended Posts

Posted (edited)

I can't get the hit sound for a monster's custom melee attack to work. I've tested it with the individual hit sounds and the miss sound. Those all work, but when I try the $random it doesn't work. I don't understand what I did wrong. I used $random for other sounds too that work just fine, except for this one. I even tried using the "MeleeSound" actor property (MeleeSound "goblin/hit") but that also doesn't work.

 

This is my code relating to it.

 

-----Sound file names-----

 

GOBHIT1.WAV

GOBHIT2.WAV

GOBHIT3.WAV

GOBMISS.WAV

GOBSEE1.WAV

GOBSEE2.WAV

 

-----DECORATE-----

 

Melee:
        GOBA A 5 A_FaceTarget
        GOBA B 5 A_CustomMeleeAttack(10,"goblin/hit","goblin/miss")
        GOBA A 5
        Goto See

 

-----SNDINFO-----

 

$random goblin/hit {goblin/hit1 goblin/hit2 goblin/hit3}
goblin/hit1 GOBHIT1
goblin/hit2 GOBHIT2
goblin/hit3 GOBHIT3

 

goblin/miss GOBMISS

 

-----$random that works-----

 

$random goblin/see {goblin/see1 goblin/see2}
goblin/see1 GOBSEE1
goblin/see2 GOBSEE2

 

What am I doing wrong? I don't understand. .-.

Share this post


Link to post

Nvm, I figured out what went wrong. Above where I put the code for the hit sounds was a line of code for the active sound "goblin/active GOBACTIV". I apparently forgot to put the "GOBACTIV" bit in that like and it broke the $random below it. I fixed the error and now all my sounds work lmao. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×