• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[JASS] Any native for this function?

Status
Not open for further replies.
Level 8
Joined
Dec 30, 2011
Messages
134
Can anyone helpme with this functions?, I want to this be native functions! :C
JASS:
if i < 10 then //Ignore this
    set p[i] = PolarProjectionBJ(p[0], 0, angle * i) //Is any native function to replace this?
    set pts[i] = PolarProjectionBJ(p[0], 300., angle * i) //And this!!! I made 99% of my spell, but I can't complete because
														  //I can't find a native function for do this!
	set i = i + 1 //Ignore this
endif //Ignore this

SORRY FOR MY ENGLISH
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
JASS:
function PolarProjectionBJ takes location source,real dist,real angle returns location
    local real x = GetLocationX(source) + dist * Cos(angle * bj_DEGTORAD)
    local real y = GetLocationY(source) + dist * Sin(angle * bj_DEGTORAD)
    return Location(x, y)
endfunction

This is how the function works. Apply this logic into your script.
 
Status
Not open for further replies.
Top