Warcraft III resources & community, 2003–2006 · archived

moving in circles

5 posts
#1

moving in circles

just a question out of curiosity. how do you make effects circle around a unit? e.g. a wisp moving in circles of a hero.
#2
Create dummy unit with wisp model. Then, every 0.03 second move the dummy instantly to position of buffed unit offset by 100 at x degree. x initialized with 0 and incremented with 5.
#3
cool :o but i will need to use a variable to store the position of the dummy right?
#4
Nope, don't store the position, but store the x(angle) value. Each period set x with x + <something>.
#5
oh i see :shock: i never thought of it that way :wink: