- Joined
- Mar 3, 2006
- Messages
- 1,564
If I make a nova that works like this
then later I move with this
Which is better the previous or a hashtable. If hashtable how do I use it ?
JASS:
loop
exitwhen i >= NOVA_SIZE
set inst.Nova[i] = CreateUnit( inst.Player , UNIT_ID , inst.X , inst.Y , A )
set A = A + dA
set i = i + 1
endloop
JASS:
loop
exitwhen j >= NOVA_SIZE
set x = inst.X + inst.expand * Cos( a * bj_DEGTORAD )
set y = inst.Y + inst.expand * Sin( a * bj_DEGTORAD )
call SetUnitX( inst.Nova[j] , x )
call SetUnitY( inst.Nova[j] , y )
set j = j + 1
set a = a + dA
endloop
Note:I never used hashtables before, so I decided to learn how to use them but in JASS directly (I will not learn in GUI then JASS)