HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Odering Units on Rescue

02-13-2007, 08:46 PM#1
Omnikron13
Hey, I've recently encountered a problem with some rescuable units I was using in a map I'm working on. The units are ordered to move somewhere while not under player control, and can obviously be rescued on the way there, but if they are, they stop dead in their tracks... I didn't, at first, believe this would be a problem as I could easily re-order them on rescue, something like this:
Trigger:
converted
Collapse Events
Unit - A unit owned by Player 2 (Blue) Is rescued
Conditions
Collapse Actions
Unit - Order (Triggering unit) to Move To (Center of (Playable map area))

However, that doesn't work, it makes no difference if I have that trigger or not. Does anyone have any idea why this doesn't work? Or an alternate way to do it? If any solution you suggest is JASS, you would have to tell me how to implement it, also, as I've not used JASS yet.
02-13-2007, 10:20 PM#2
Ammorth
Try add a split second wait (using a timer if wanted) before you order the unit again. Some events fire right before the event actually occurs (example: Unit acquires an item). It could be that its re-ordered before it becomes owned by the player, so it stops.
02-13-2007, 10:45 PM#3
Omnikron13
Yes, that works, thanks. =)