- Joined
- Nov 21, 2012
- Messages
- 835
Guys, is it save if I want to show floating text just for one player
insted of creating forces and using this bj:
I have no expirience with
JASS:
if (GetLocalPlayer() == pla) then
call SetTextTagVisibility(bj_lastCreatedTextTag, true)
else
call SetTextTagVisibility(bj_lastCreatedTextTag, false)
endif
JASS:
function ShowTextTagForceBJ takes boolean show, texttag tt, force whichForce returns nothing
if (IsPlayerInForce(GetLocalPlayer(), whichForce)) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call SetTextTagVisibility(tt, show)
endif
endfunction
I have no expirience with
GetLocalPlayer()