shiFt
Member
- Reaction score
- 8
How do I use this native?
function SelectUnitForPlayerSingle takes unit whichUnit, player whichPlayer returns nothing
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call ClearSelection()
call SelectUnit(whichUnit, true)
endif
endfunction
call SelectUnitForPlayerSingle(u,p)
if (GetLocalPlayer() == p) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call ClearSelection()
call SelectUnit(u, true)
endif
Ive done that matrix but it is highlighted in red, I thought it could be further converted to natives
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call ClearSelection()
call SelectUnit(whichUnit, true)
endif