HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

my trigger has a problem...

03-19-2004, 03:14 AM#1
nkknight
event - a unit is attacked
condition - attacked unit = sleeping
action - pick every unit own by owner of attacked unit by the type footman and do ations
loop - unit pause picke unit
- wait 2 second
-unit unpause picked unit

somehow when the unit is attacked in the map, it pause all the footman of mine in the map BUT it does not UNPAUSE after 2 seconds, infact it never unpause, can anyone help me fix it?
03-19-2004, 03:25 AM#2
cangrejo
Quote:
Originally Posted by nkknight
event - a unit is attacked
condition - attacked unit = sleeping
action - pick every unit own by owner of attacked unit by the type footman and do ations
loop - unit pause picke unit
- wait 2 second
-unit unpause picked unit

somehow when the unit is attacked in the map, it pause all the footman of mine in the map BUT it does not UNPAUSE after 2 seconds, infact it never unpause, can anyone help me fix it?


You shouldn't put wait actions inside a loop, instead make 2 loops..
like
Code:
Actions: Pick every unit owned by (Owner of Attacked Unit) of type Footman and do: unit - pause picked unit.
(outside the loop)Wait for 2.00 seconds
Pick every unit owned by (Owner of Attacked Unit) of type Footman and do: unit - unpause picked unit.
03-19-2004, 03:42 AM#3
nkknight
thx alot, now it is working :)