HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Make stunned unit still respond.

11-02-2003, 03:24 AM#1
ilikefreeforall
Hey, in my TD, i want stunned unit still going on with the regions but not attack. anyone know how to do this? thanks.
11-02-2003, 03:48 AM#2
ObsidianTitan
Well, i don't think you can do that with stunning. But the answer is possible.

Don't actually stun the unit, create a sfx above its head if you want, Then order the unit to move to the next point.

Events - Unit is attacked
Conditions - Attacking unit type equal to a unit type that has stun
Actions - Order unit to move to point
If you really want to you can also set unit walk speed to 80% of default walk speed

I haven't checked if this will work so could someone confirm it for me.
11-02-2003, 12:07 PM#3
Shvegait
This is an odd situation, because since about v1.06 of RoC, I stopped having the problem of stunned units not continuing to move. In a TD I'm working on, casting Frost Bolt on a unit stuns it for 5 seconds, but then the unit continues to move after that. The problem still occurs, though, for things such as Sleep and, I think, Entangling Roots.

The solution would be to re-issue the move order whenever the unit is no longer stunned. If you have something that stuns the unit for 5 seconds, then make a trigger that runs whenever a unit is attacked by that specific tower or that specific ability is used. Throw in a 5.00 or 5.10 or so second wait, and then issue the unit to move to the next region. If you don't do so already, you'll need to keep track of where the units are headed next. Probably the easiest way to do this is by using Custom Value of Unit, assigning a new one whenever the unit enters the next turning region. Then you'd want to have along with that an array of all the regions, the indexes referring to the Custom Values that you assigned to the creeps.
11-02-2003, 11:57 PM#4
drezman
u cld just make it so that when unit gets stunned take away attack ability, wait 5 seconds, and then give it back