nabbig2
New Member
- Reaction score
- 43
I want it so that when a player types something, a certain music plays, but only for him. Is it possible?
Example
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Set MyPlayer = (Owner of (Entering unit))
Custom script: call StartSoundForPlayerBJ(udg_MyPlayer,udg_firstblood)
-------- End of code. --------
playmusic1
Events
Player - Player 1 (Red) types a chat message containing -music1 as An exact match
Conditions
Actions
Set Player1music = (Matching player)
Custom script: call StartSoundForPlayerBJ(udg_Player1music,udg_PH1)
call StartSoundForPlayerBJ(udg_Player1music,udg_gg_snd_PH1)
playmusic1
Events
Player - Player 1 (Red) types a chat message containing -song1 as An exact match
Conditions
Actions
Set Player1music = Player 1 (Red)
Custom script: call StartSoundForPlayerBJ(Player1music)),gg_snd_PH1)
Like this? Still says error :banghead::banghead::banghead:
Code:playmusic1 Events Player - Player 1 (Red) types a chat message containing -song1 as An exact match Conditions Actions Set Player1music = Player 1 (Red) Custom script: call StartSoundForPlayerBJ(Player1music[COLOR="Red"]))[/COLOR],gg_snd_PH1)
Chocobo said:call StartSoundForPlayerBJ(GetOwningPlayer(GetTriggerUnit()),gg_snd_PH1)
call StartSoundForPlayerBJ(Player1music),gg_snd_PH1)
Like this? Won't work still.......Code:call StartSoundForPlayerBJ(Player1music),gg_snd_PH1)
call StartSoundForPlayerBJ(Player1music,gg_snd_PH1)
call StartSoundForPlayerBJ(GetOwningPlayer(GetTriggerUnit()),gg_snd_PH1)