- Joined
- Jun 7, 2008
- Messages
- 440
I am stumped with this:
I want to have it a max AoE of 500 around the caster(x/y being the caster). It seems that it shoots all across the map. Where am I going wrong?
JASS:
local real randx = x+GetRandomReal(x,500)*Cos(GetRandomReal(bj_PI,2*bj_PI))
local real randy = y+GetRandomReal(y,500)*Sin(GetRandomReal(bj_PI,2*bj_PI))
I want to have it a max AoE of 500 around the caster(x/y being the caster). It seems that it shoots all across the map. Where am I going wrong?