Play sound in UI context

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!)
Post Reply
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Play sound in UI context

Post by Apeirogon »

Is there are any way to play some sound in way that it can be heard ONLY by player?
By this I means something like "voices in head".
User avatar
Enjay
 
 
Posts: 26535
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Play sound in UI context

Post by Enjay »

Does this doe what you want? [wiki]LocalAmbientSound[/wiki]

Only the actor activating the script will hear the sound so I think it should only be heard by the player who activates the script and any other players shouldn't hear it.
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Re: Play sound in UI context

Post by Apeirogon »

Yes, but but I would prefer zscript version of this function.
Post Reply

Return to “Scripting”