Hi all,
I don't understand why GUI gives me an error with a script itself created:
function Trig_Lay_Mines_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Trig_Lay_Mines_Actions takes nothing returns nothing
set udg_Miner = GetUnitLoc(GetSpellAbilityUnit())
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Miner2 = OffsetRectBJ(udg_Miner2, GetRandomReal(0, 250.00), GetRandomReal(0, 250.00))
call CreateNUnitsAtLoc( 1, 'nglm', GetOwningPlayer(GetSpellAbilityUnit()), GetRectCenter(udg_Miner2), bj_UNIT_FACING )
call RemoveLocation(udg_Miner2)
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
The "set bj_forLoopAIndex = bj_forLoopAIndex + 1" is not in my script so it's auto generated by the GUI, but it tells me "Invalid argument type (rect)
What does this mean?
I don't understand why GUI gives me an error with a script itself created:
function Trig_Lay_Mines_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Trig_Lay_Mines_Actions takes nothing returns nothing
set udg_Miner = GetUnitLoc(GetSpellAbilityUnit())
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Miner2 = OffsetRectBJ(udg_Miner2, GetRandomReal(0, 250.00), GetRandomReal(0, 250.00))
call CreateNUnitsAtLoc( 1, 'nglm', GetOwningPlayer(GetSpellAbilityUnit()), GetRectCenter(udg_Miner2), bj_UNIT_FACING )
call RemoveLocation(udg_Miner2)
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
The "set bj_forLoopAIndex = bj_forLoopAIndex + 1" is not in my script so it's auto generated by the GUI, but it tells me "Invalid argument type (rect)
What does this mean?