Cokemonkey11
New Member
- Reaction score
- 18
JASS:
call SetUnitX(rifleAttacker,(GetLocationX(PolarProjectionBJ(GetUnitLoc(centerUnit)),256,i,270))
I'm new to jass and it will take me ages to debug this.
I'm pretty sure all I need to do is move parentheses around, if anyone could help me out i'd be grateful.
Thank you,
edit - i may have changed it a bit trying to debug myself..
JASS:
local integer i = 0
call SetUnitX(rifleAttacker,(GetLocationX(PolarProjectionBJ(GetUnitLoc(centerUnit),256,i)),270))
// | unit | real |
// | location |
// | location | r |r|
// | unit |
//SetUnitX(unit,real)
//GetLocationX(location)
//PolarProjectionBJ(location,real,real)
//GetUnitLoc(unit)