- Joined
- Jul 10, 2007
- Messages
- 6,306
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
struct Tester extends array
private static method onInit takes nothing returns nothing
local integer i = 1
local unit u1
local unit u2
local unit u3
local unit u4
loop
exitwhen 0 == i
set i = i - 1
//set u1 = CreateUnit(Player(2), 'hfoo', GetStartLocationX(0), GetStartLocationY(0) - 512, 270)
set u2 = CreateUnit(Player(2), 'hrif', GetStartLocationX(0), GetStartLocationY(0) - 512, 270)
//set u3 = CreateUnit(Player(0), 'hgtw', GetStartLocationX(0), GetStartLocationY(0), 270)
set u4 = CreateUnit(Player(0), 'hfoo', GetStartLocationX(0), GetStartLocationY(0), 270)
set UnitAttack[u4].maxRange = 128 + 64
set UnitAttack[u2].maxRange = 550
set UnitAttack[u2].minRange = 300
set UnitAttack[u4].cooldown = 5
set UnitAttack[u2].cooldown = 5
//call PhysicalDamageModifier[u4].apply(-10, true) //-10 to incoming damage
//call WeaponSourceEvasionModifier[u2].apply(.5) //50% chance to evade
endloop
set u1 = null
set u2 = null
set u3 = null
set u4 = null
endmethod
endstruct
local real distance
local real angle
set maxRange = maxRange*maxRange
set minRange = minRange*minRange
set distance = x*x + y*y
local real distance = x*x + y*y
local real angle
set maxRange = maxRange*maxRange
set minRange = minRange*minRange
Yea, I know, I'm hella tired =o. Haven't gone to bed yet and it's 7 am and I've been up for like 4 days straight ^)^.
