I'm having a bit of trouble with the PlaySound feature in acs.
I want to be able to send a message when the Player dies and also play a game over sound.
Is it possible or no?
Help: Game Over Sound
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 2254
- Joined: Mon Jan 06, 2014 11:32 pm
Re: Help: Game Over Sound
It's possible with a DEATH script that does the sound and message, yea.
-
- Posts: 9
- Joined: Mon Oct 30, 2017 2:19 am
Re: Help: Game Over Sound
Is this correct?
Code: Select all
script 900 DEATH
{
PlaySound (0, "METALG3", CHAN_BODY, 1.0, False, ATTN_NONE);
SetFont("BIGFONT");
SetHudSize(640,480,1);
HudMessage(s:"PLAYER IS DEAD"; HUDMSG_TYPEON, 100, CR_WHITE, 320.0, 240.0, 900.0, 0.1, 1.0);
}