HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

copying movement

09-08-2007, 06:35 PM#1
evilmapcreater
i want one unit to copy the other units movement. but in my attempt, wc3 crashed for some reason... here is the trigger

Trigger:
Untitled Trigger 002
Collapse Events
Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
Conditions
Collapse Actions
Set angle = (Angle from (Position of (Triggering unit)) to (Target point of issued order))
Set distance = (Distance between (Position of (Triggering unit)) and (Target point of issued order))
Unit - Order Peasant 0001 <gen> to Move To ((Position of Peasant 0001 <gen>) offset by distance towards angle degrees)

and i attached a map file of it....

So dose any one know how to not make it crash / do it in another way or something?
Attached Files
File type: w3mTESTCOPYMOVEMENT.w3m (16.1 KB)
09-08-2007, 06:47 PM#2
Captain Griffen
£5 says that the peasant is owned by player 1, foo'!
09-08-2007, 06:57 PM#3
evilmapcreater
ohh hmmm... i did this and it works now... i guess if you issue and order twice it makes it crash? w/e

Trigger:
Untitled Trigger 002
Collapse Events
Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
Collapse Conditions
(Triggering unit) Not equal to Peasant 0001 <gen>
Collapse Actions
Set angle = (Angle from (Position of (Triggering unit)) to (Target point of issued order))
Set distance = (Distance between (Position of (Triggering unit)) and (Target point of issued order))
Unit - Order Peasant 0001 <gen> to Move To ((Position of Peasant 0001 <gen>) offset by distance towards angle degrees)

thx for making me realize it.
09-08-2007, 07:01 PM#4
PipeDream
Before the order, disable the trigger
After the order, enable the trigger
09-08-2007, 08:04 PM#5
Anitarf
Quote:
Originally Posted by evilmapcreater
ohh hmmm... i did this and it works now... i guess if you issue and order twice it makes it crash? w/e
Twice? Count again.
09-08-2007, 08:08 PM#6
evilmapcreater
o you make me realize something again... very helpful... plus rep