- Joined
- Jun 20, 2007
- Messages
- 8
Hello!
I can't seem to get this to work. I think the problem lies in the unitid string to integer conversion while calling the creation of.
Please, help!
Hope you can help! Thanks,
Satsuki
I can't seem to get this to work. I think the problem lies in the unitid string to integer conversion while calling the creation of.
Please, help!
JASS:
function UnitSelectionIni takes nothing returns nothing
local real iDegree = 60
local string array sUnit
local integer i = 0
set sUnit[0] = "N001"
set sUnit[1] = "N003"
set sUnit[2] = "N004"
set sUnit[3] = "N005"
set sUnit[4] = "N006"
set sUnit[5] = "N007"
loop
exitwhen i == 6
call CreateNUnitsAtLocFacingLocBJ( 1, String2UnitIdBJ(sUnit[i]), Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(GetRectCenter(GetEntireMapRect()), 512.00, iDegree), GetRectCenter(GetEntireMapRect()) )
set iDegree = iDegree + 60
set i = i + 1
endloop
endfunction
Hope you can help! Thanks,
Satsuki