• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

ring of special effects

Status
Not open for further replies.
Level 10
Joined
Jul 2, 2004
Messages
690
how do you make special effects which makes into a ring/circle? (360 degrees around the caster)
 
create dummy unit with flame model for example, give locust ability, then:

create that unit on <center point> with <radius> polar offset, <degree> angle

let says,
create that unit on [caster position] with 500 polar offset, 0 degree angle.
create that unit on [caster position] with 500 polar offset, 5 degree angle.
create that unit on [caster position] with 500 polar offset, 10 degree angle.
....
....
....
create that unit on [caster position] with 500 polar offset, 360 degree angle.

Of course you must do it with loop. :wink:
 
qwerty said:
im not exactly pretty well with the loop.. mind helping a little more?

Ok, i don't know the exact syntax, but it like this

for integerA=1 to 10 do
damage unit X with 50 damage
loop

so, it will do

damage unit X with 50 damage
damage unit X with 50 damage
damage unit X with 50 damage
damage unit X with 50 damage
...
...
damage unit X with 50 damage

repeated until ten times, so X will get 50 repeatedly damage = 500 damage total
-----------------------------------------------------
Now, back to the problem,

you must do:
create that unit on [caster position] with 500 polar offset, 5 degree angle.
create that unit on [caster position] with 500 polar offset, 10 degree angle.
create that unit on [caster position] with 500 polar offset, 15 degree angle.
....
....
....
create that unit on [caster position] with 500 polar offset, 360 degree angle.

those require (360/5)=72 times operation.
So, use loop here,

for integerA=1 to 72 do
create that unit on [caster position] with 500 polar offset, (5*IntegerA) degree angle.
loop

hope you understand that.
 
Status
Not open for further replies.
Back
Top