Hi there,
I'm not really new to JASS but I've never given it any thought til now,
and now that I have I'm not quite sure whether I got it right, so I thought this would be a good place to ask:
Will
actually (besides from leaking a force) potentially desync the string table between allies and enemies of player red on the first usage,
because it will write "something" only for his allies?
~dizzied by his own thoughts,
SB
I'm not really new to JASS but I've never given it any thought til now,
and now that I have I'm not quite sure whether I got it right, so I thought this would be a good place to ask:
JASS:
function DisplayTextToForce takes force toForce, string message returns nothing
if (IsPlayerInForce(GetLocalPlayer(), toForce)) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, message)
endif
endfunction
Will
JASS:
call DisplayTextToForce( GetPlayersAllies(Player(0)), "something" )
because it will write "something" only for his allies?
~dizzied by his own thoughts,
SB