- Joined
- Jul 28, 2008
- Messages
- 211
I started with scopes today and i wanted to practice so i made something. But it doesn't work. Why?
Thx!
JASS:
scope vars
function init takes nothing returns nothing
set target = GetSpellTargetUnit()
set caster = GetSpellAbilityUnit()
set x = GetUnitX(target)
set y = GetUnitY(target)
set c = GetUnitLoc(caster)
set angle = GetUnitFacing(caster)
endfunction
endscope
Thx!