• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Attaching units

Status
Not open for further replies.
Level 2
Joined
Feb 17, 2008
Messages
10
Basically, What I'm trying to do is have one unit "attach to the other". Not exactly permanantly, but until the player detaches them with input.

The scenario is one unit, unit A, will use an item that creates another unit, unit B. After unit B appears, Unit A "attaches itself" such that it is in the same location as Unit B, even if unit B is told to move, stop, etc...

The way I have this done right now is when Unit B appears, Unit A's collision is turned off, and every .02 seconds or whatever, Unit A is instantly moved to unit B. It works, but Unit B's movement is very choppy and sometimes stops altogether when told to move.

There must be a better way to do this. btw, they must both be ground units (no flying).
 
Level 2
Joined
Feb 17, 2008
Messages
10
>Is this for Cinematics or normal trigger on custom map ?
Normal trigger

>Make the unit A as locust unit ?
I would prefer not to have to make Unit A a locust unit but it is a possibility. I would have to use dummy units for my desired outcome

>You may have to turn collision off for both units.
I've done this and it does work, but I dont want Unit B in my scenario to be able to move through trees, walls, etc..

>I can try do this if you'd like.
If you have the time that would be very appreciated
 
Status
Not open for further replies.
Top