• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Play sound for player

Status
Not open for further replies.
Thanks, But I'm no good with variables, can you:
1. I'll upload the map with this post and you can do it.
OR
2. Explain how to use it.

Note: I cannot make any progress on the map until something is done.
I need to make any hero unit killed by 'Eveneroc' that does not belong to red or blue's players hear the variable 'andthatconcludesourdemo'.

Thanks in advance.
 

Attachments

Last edited:
Yeah, it's not wrong, it's just that when the sound is played for the first time, it should go from null to a specific value, not the other way around (cause it will simply not play). The map works fine, so :]

Quote from PurgeandFire111's tutorial:
Congratulations, you made it correctly! HOWEVER, if this string is used for the first time (as in, have you never used that string before [which means it isn't in the string table]) can cause the string table to become unsynchronized (it enters the string table for only one person), which can also lead to some desyncs:

JASS:
function Test takes nothing returns nothing
    //this is the proper method
    local string s = "war3mapImported\\FX.mdl"

    if GetLocalPlayer() != Player(0) then
        set s = ""
    endif
    call DestroyEffect(AddSpecialEffect(s,0.,0.))
endfunction

That is the proper method for creating effects locally.

http://www.thehelper.net/forums/showthread.php?t=89207
 
Status
Not open for further replies.
Back
Top