so im doing a dashing skill, and it dashes in the angle of what the caster is facing..
so are these the right way to get the Cos and Sin values?
set cast[hid]=GetTriggerUnit()
set cos[hid]=Cos(GetUnitFacing(cast[hid]))
set sin[hid]=Sin(GetUnitFacing(cast[hid]))
so i set the range over 1000 and it's as if it never changes, the unit's range should be somewhere around 800 but it's more like 300 in game for some reason
heres the test map
Item 1:
Increases Movespeed, attackspeed, mana and hp regeneration for awhile, then reduces all of them bellow normal.
Type-Charged(like clarity potion)
Item 2:
5% damage reduction for 10 seconds.
Type-Charged(like clarity Potion)
Item 3:
Type=Permanent
15% magic...
oh so it takes a value then feeds out a something else and you would do something like
scope HELLO
private struct test
unit hero
method operator [] takes unit u returns string
return GetUnitName(.hero)+GetUnitName(u)
endmethod
endstruct
private function...
static method operator [] takes string s returns integer
return I2S(s)*5
endmethod
^ i have no idea if thats right, lol im just randoml putting something in
what a method operators? i've read the jass helper manual tihngy but it still didn't clear things up, what can operators do? and...