Akolyt0r
New Member
- Reaction score
- 33
I want a nova-like spell...
dummyspell is some shockwave like ability..
my problem is i dont get a full circle...but only a quarter circle on the right side of my caster ...
Im kinda confused cause
have i got wrong formulas ?
wah Halp meh pls.
.0.
dummyspell is some shockwave like ability..
my problem is i dont get a full circle...but only a quarter circle on the right side of my caster ...
Im kinda confused cause
should generate coordinates around cx,cy with a radius of 1 ...shouldnt it ?//c like quotation here
for(int i=0;i<=360;i+=10){
x=cx+1*Cos(i*bj_DEGTORAD)
y=cy+1*Sin(i*bj_DEGTORAD)
//Do Something with x,y
}
have i got wrong formulas ?
wah Halp meh pls.
JASS:
//code snippet
local unit caster=GetTriggerUnit()
local player p=GetOwningPlayer(caster)
local real cx=GetUnitX(caster)
local real cy=GetUnitY(caster)
local integer i=0
local real x=cx
local real y=cy
local unit dummy
loop
exitwhen i>360
set dummy=CreateUnit(p,dummyid,cx,cy,0)
call UnitApplyTimedLife(dummy,039;BTLF039;,1)
call SetUnitAbilityLevel(dummy,fxspellid,GetUnitAbilityLevel(caster,spellid))
set x=cx+1*Cos(i*bj_DEGTORAD)
set y=cy+1*Sin(i*bj_DEGTORAD)
call IssuePointOrder(dummy,fxorderstring,x,y)
set i=i+10
endloop
.0.