I want to make a Hero Selection which if you clicked the hero, it will add Arrow effect on hero's overhead attachment. When a player selected other hero, the arrow effect will be destroyed.
The problem is the desync.
This is my code that I doing right now.
How to fix this? It is possible?
The problem is the desync.
This is my code that I doing right now.
JASS:
set udg_HS_thisUnit[ID] = thisUnit
if( udg_HS_sfx[ID] != null ) then
call DestroyEffect( udg_HS_sfx[ID] )
endif
if( GetLocalPlayer() == pl ) then
set udg_HS_sfx[ID] = AddSpecialEffectTarget( "Abilities\\Spells\\Other\\Aneu\\AneuTarget.mdl", thisUnit, "overhead" )
endif
How to fix this? It is possible?
Last edited: