• 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.

2 Questions

Status
Not open for further replies.
Level 22
Joined
Jan 10, 2005
Messages
3,426
1) I have this spell called Poison Nova. When u cast it some waves of poison move from the hero to another point
So I used for each integer A and all that stuff.
But now I want to pick every unit that comes withing range of a poison wave.
I tried:
Every 0.1 sec of game
Pick every unit within 200 range of unit(integer A) but that doesnt work. (I need it cuz I want to poison every unit that comes in contact with a poison wave (a dummy)

2) How do u let dummys or effects rotate around a unit (like the lightnin shield target)
I know it is sumthing like this:
every 0.01 sec
Move unit instantly to angle towards...... but not exactly how
 
Level 7
Joined
May 16, 2004
Messages
355
Well Jacek you can't just spew something like that. Its not the lack of jass that makes it choppy. It is 1) The really small time between executions 2) the point variables created.

Bump the time up to 0.04 seconds and for the spinning do
Code:
set tempPoint = position of (Spinner) // Spinner is the unit who has them spinning
set ang = ang + 5 // this will be increased every time
for loop 1 - 3 // I am assuming we only have 3 spinners
    set tempPoint2 = TempPoint offset by (130) towards (ang * Loop A) // this will stagger the units out evenly around the spin unit, I think
    move (spun[loop A]) to temppoint2
    call removelocation(udg_TempPoint2)
call removelocation(udg_TempPoint)

the spun units would be set when they are picked up or created or whatever
 
Status
Not open for further replies.
Top