Multiple "Use" function sounds

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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!)
User avatar
Exosphere
Posts: 168
Joined: Sun Jun 11, 2017 11:42 am
Location: New England, US

Multiple "Use" function sounds

Post by Exosphere »

Very small question, but is it possible to change the "use" sound when pressing the use key on a specific object or door, but then have a different sound for everything else?
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Multiple "Use" function sounds

Post by TheMightyHeracross »

Not technically, but you can make the thing execute a simple ACS script which plays a sound on the player using [wiki]PlaySound[/wiki].

Return to “Scripting”