- Joined
- Dec 12, 2010
- Messages
- 2,070
accordint to this thread
http://www.hiveworkshop.com/forums/triggers-scripts-269/getlocalplayer-texttags-192757/
i tried to use locally created texttags, but got tons of desync while testing.
whats wrong with me? did anyone actually tested locally created Texttags in multiplayer aside from "assuming"?
http://www.hiveworkshop.com/forums/triggers-scripts-269/getlocalplayer-texttags-192757/
i tried to use locally created texttags, but got tons of desync while testing.
whats wrong with me? did anyone actually tested locally created Texttags in multiplayer aside from "assuming"?
JASS:
function imitategold takes player whichPlayer, unit whichUnit, integer gold returns nothing
local texttag t
call SetPlayerState(whichPlayer,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(whichPlayer,PLAYER_STATE_RESOURCE_GOLD)+gold)
if GetLocalPlayer()==whichPlayer then
set t=CreateTextTag()
call SetTextTagText(t,"+"+I2S(gold),.025)
call SetTextTagPosUnit(t,whichUnit,-0.4)
call SetTextTagColor(t,255,220,0,255)
call SetTextTagVelocity(t,0,.03)
call SetTextTagVisibility(t,true)
call SetTextTagFadepoint(t,2)
call SetTextTagLifespan(t,3)
call SetTextTagPermanent(t,false)
endif
Last edited by a moderator: