KVELLER Posted April 20, 2017 So I have a sound called "ICEBRK1A" in the "sounds" folder but I don't know how to get it to work with A_PlaySound. I tried this: Crash: HEAX A 1 A_PlaySound("sounds/ICEBRK1A") and this: Crash: HEAX A 1 A_PlaySound("ICEBRK1A") but none of them work. What do I have to write? 0 Share this post Link to post
1 Darch Posted April 20, 2017 You need to define it in SNDINFO lump: https://zdoom.org/wiki/SNDINFO 1 Share this post Link to post
0 everennui Posted April 20, 2017 Do you have the sound defined in the Actor Sound Property before your states? .... +NOGRAVITY SeeSound "caco/sight" PainSound "caco/pain" DeathSound "caco/death" ActiveSound "caco/active" Obituary "$OB_CACO" HitObituary "$OB_CACOHIT" States { Spawn: HEAD a 1 A_Look Loop See: .... I'm not sure if this is the right track or not. 0 Share this post Link to post
0 KVELLER Posted April 20, 2017 (edited) I'm trying to call a specific sound. According to the ZDoom Wiki, there's no sound property for the Crash state. 0 Share this post Link to post
So I have a sound called "ICEBRK1A" in the "sounds" folder but I don't know how to get it to work with A_PlaySound.
I tried this:
Crash: HEAX A 1 A_PlaySound("sounds/ICEBRK1A")
and this:
Crash: HEAX A 1 A_PlaySound("ICEBRK1A")
but none of them work. What do I have to write?
Share this post
Link to post