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!
That desyncs because you are creating a handle (with an id > 0x100000 (1045876 or so iirc) within that block. =D
The proper way is to do it like this:
JASS:
function Test takes nothing returns nothing
local string s = "war3mapImported\\FX.mdl"
if GetLocalPlayer() != Player(0) then //modify Player(0)
set s = ""
endif
call DestroyEffect(AddSpecialEffect(s,0.,0.))
endfunction
Player(0) is the player you want to show it for. Basically, set a string to your path, and locally set it to "" for all players but that player. The reason for this odd method (rather than directly setting the path with the GetLocalPlayer() == Player) is to keep the string tables synced when using a string for the first time.
Basically:
Whee
Events
Conditions
Actions
Set MyString = "war3mapImported\\FX.mdl"
Custom Script: if GetLocalPlayer() != Player(0) then
Set MyString = <Empty String>
Custom Script: endif
Special Effect - Create a special effect at <loc> using MyString... etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.