- Joined
- Apr 12, 2009
- Messages
- 125
I need help with a location variable
locOffset need's to be an array, how to fix? And what should I type after the equal?
locOffset need's to be an array, how to fix? And what should I type after the equal?
JASS:
function coolspell takes nothing returns nothing
local unit c = GetTriggerUnit()
local location casloc = GetUnitLoc(GetTriggerUnit())
local real r = 0.00
local integer i = 0
local location locOffset = WTF // ... = what?
loop
exitwhen i <= 8
call CreateNUnitsAtLoc( 1, 'hfoo', GetOwningPlayer(c), casloc, 270)
set locOffset[GetForLoopIndexA()] = PolarProjectionBJ( casloc, 700.00, r)
call IssuePointOrderLoc ( GetLastCreatedUnit(), "flamestrike", locOffset[GetForLoopIndexA()] )
set r = ( r + ( 360.00 / 8.00 ) )
set i = i + 1
endloop
endfunction