Warcraft III resources & community, 2003–2006 · archived

2 Questions

6 posts
#1

2 Questions

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
#2
1)

Pick every unit within 200 range of unit(integer A)


unit(integer A)??? How can you tell unit by integer.


2) Move unit instantly, but as target use Point with Polar Offset, set origin of rotation, angle (integer A), and radius. But without using JASS it will be choppy.
#3
1) I have an integer unit variable, when I create a unit (under the 'for each integer A') I set that unit to the variable(IntegerA)

Then another trigger: Every 0.1 sec of game, pick every unit within 200 range of unit(integerA)

2) ok, I'll try
#4
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

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
#5
Really? I thought that Wait trigger as Jass function TriggerSleepAction was limited to 0.1 sec at most and you are forced to use timers. Correct me if I am wrong it is 11 PM I'm very sleepy :)
#6
Thnx alot Chuckle Brother, u donnu answer for question 1 ? :P

Really? I thought that Wait trigger as Jass function TriggerSleepAction was limited to 0.1 sec at most and you are forced to use timers. Correct me if I am wrong it is 11 PM I'm very sleepy icon_smile.gif


Maybe at JASS 0.1 is limited, but with GUI the lowest is 0.01