- Joined
- Jun 30, 2006
- Messages
- 230
JASS:
globals
force udg_Alliance
force udg_Horde
endglobals
function WhichForce takes integer i returns force
local force f
if i<10 then
if i<5 then
set f = udg_Alliance
else
set f = udg_Horde
endif
endif
return f
endfunction
function Blah takes nothing returns nothing
local integer i = 0
local force g
set g = WhichForce(i)
endfunction