- Joined
- Mar 26, 2008
- Messages
- 239
Explanation: I wanted to create special effect for player (the effect will ve visible only for 1 or group of players), but I didn't know how. Then I read this tutor:
http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/using-getlocalplayer-59368/
Here is the method I used(For those who don't want to look for it in the tutor):
But this method caused desync.
Question:
1)Can it be fixed? And if not then:
2)How can I do that? (I mean any other method)
http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/using-getlocalplayer-59368/
Here is the method I used(For those who don't want to look for it in the tutor):
JASS:
function AddSpecialEffectForPlayer takes location where, string modelpath, player whichplayer returns nothing
local string s = ""
if GetLocalPlayer() == whichplayer then
set s = modelpath
endif
call AddSpecialEffectLoc(modelpath,where)
endfunction
Question:
1)Can it be fixed? And if not then:
2)How can I do that? (I mean any other method)