HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Playing a sound for one player only.

07-24-2004, 04:29 PM#1
bobthemage
Hi,

I'm using a hint system in my map that can be disabled by players. Therefore, every 90 seconds, a Trigger will do an action like:

Quote:
For each (Integer HintLoop) from 1 to HintNumber, do (Actions)
Loop - Actions
Wait 90.00 seconds
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerShowHints[(Player number of (Picked player))] Equal to True
Then - Actions
Game - Display to (Player group((Picked player))) for 8.00 seconds the text: HintsAlwaysString[HintLoop]
Else - Actions

Now, my problem is as follows: I want to add a sound effect to the hint, to be played whenever the hint is displayed. Only those players which actually get the hint display should hear the sound. If I use the "Sound - Play Sound" trigger however, all players will hear the sound. Is there any way to play a sound for a specific player only?

Regards,
Martin
07-24-2004, 05:49 PM#2
Rafael Br
I am pretty sure that there is no way to play a sound for a specific player.
EDIT:An alternative should be making a quest message for your text, quest messages automatically play sounds and can be played to specific players.
07-24-2004, 08:07 PM#3
bobthemage
Thanks, that was exactly what I was looking for.

Regards,
Martin
07-25-2004, 01:11 PM#4
AIAndy
You can play sounds to specific players by using an if with local player.