I'm only recently trying to fiddle with GetLocalPlayer
i dont really have friends to test it
Would this work to create items that show for only a specific player?
JASS:
function GetUnitWingData takes nothing returns nothing
local integer i
local integer array i2
loop
exitwhen i == 12
if GetLocalPlayer() == Player(i) then
if GetRandomInt(0, 100) < 50 then
set i2[GetPlayerId(GetLocalPlayer())] = 'A019'
endif
endif
set i = i+ 1
endloop
call CreateItem(i2[GetPlayerId(GetLocalPlayer())], 0, 0)
endfunction
i dont really have friends to test it
Would this work to create items that show for only a specific player?