BRUTAL
I'm working
- Reaction score
- 118
these two actions are BJ's but the fix for them is confusing
now the fixed way for the Select action is;
and i dont get it, the action 'SelectUnit(whichUnit, true)' doesnt have a agruement for a player, so do i have to put that 'if (GetLocalPlayer..' for each player? : s
same with the camera action;
thanks in advance
JASS:
call SelectUnitForPlayerSingle (u, GetEnumPlayer())
call PanCameraToTimedForPlayer (GetEnumPlayer(), x, y, 0)
now the fixed way for the Select action is;
JASS:
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call ClearSelection()
call SelectUnit(whichUnit, true)
endif
and i dont get it, the action 'SelectUnit(whichUnit, true)' doesnt have a agruement for a player, so do i have to put that 'if (GetLocalPlayer..' for each player? : s
same with the camera action;
JASS:
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call PanCameraToTimed(x, y, duration)
endif
thanks in advance