I am having trouble with a custom monster action function because if the monster's state changes while a sound is being played, the sound just keeps playing until it is finished. Unlike the original monsters, new monsters may need to speak actual sentences, rather than short grunts that are always guaranteed to play in 8 tics or less.
Inside the engine, IIRC you can start a sound and get a handle or channel number and stop the sound by handle or channel number if necessary.
Could this be added to the engine and ACC, please? How easy/difficult would it be?
Ability to stop a sound in ACS
Moderator: GZDoom Developers
- MartinHowe
- Posts: 2061
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
-
- Posts: 598
- Joined: Fri Jun 24, 2005 3:19 am
- Location: Makin tracks with jetboots
- MartinHowe
- Posts: 2061
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
-
- Posts: 598
- Joined: Fri Jun 24, 2005 3:19 am
- Location: Makin tracks with jetboots