HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Movement speed via GUI buggy,help xD

09-18-2007, 06:03 PM#1
teddybear
I have created a trigger like this:

Trigger:
Blood Stop
Collapse Events
Unit - A unit Starts the effect of an ability
Conditions
Collapse Actions
Unit - Set (Target unit of ability being cast) movement speed to ((Current movement speed of (Target unit of ability being cast)) - 66.00)
Wait 8.00 seconds
Unit - Set (Target unit of ability being cast) movement speed to ((Current movement speed of (Target unit of ability being cast)) + 66.00)

but its bugged hardly!
idk what correctly worng but i just see that sometimes its forgetting to reduce speed and only increase or just increase and dont reduce,idk!

anyone have outher way to slow units down+show me the trigger/whatever?
09-18-2007, 06:16 PM#2
Strilanc
All of the 'triggering units' can become invalid after a wait. You need to store casting unit in a local.
09-18-2007, 06:25 PM#3
botanic
actually the triggering units cary through a wait its the "Target unit of ability being cast" that is a problem same fix tho set the target to a variable at the beginning of the trigger and then use the variable
09-18-2007, 06:40 PM#4
teddybear
Okays thanks i will try it later
+rep
09-19-2007, 05:19 AM#5
Pyrogasm
And there is a minimum that you can set a unit's movespeed too. You can change it in Gameplay Constants.