• 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.

Bonding unit to a building. Please help

Status
Not open for further replies.
Level 1
Joined
Oct 24, 2015
Messages
3
hey guys i need help with a trigger.
I want to spawn a unit as soon as a building finishes construction
I want that created unit to be assign to the player that built the building, then i want it to be uncontrollable (made unit a ward)
Finally i want that created unit to die when the building that spawned it is destroyed.

How do i do this?
 
Level 4
Joined
Jul 27, 2015
Messages
29
hey guys i need help with a trigger.
I want to spawn a unit as soon as a building finishes construction
I want that created unit to be assign to the player that built the building, then i want it to be uncontrollable (made unit a ward)
Finally i want that created unit to die when the building that spawned it is destroyed.

How do i do this?

Hi, sorry I had to sleep I was up very late last night

Hopefully this map explains how you can use Hash tables to achieve what you're trying to do

Please respond here once you've had a look around and tried it out yourself
 

Attachments

  • TyingDummyUnitsToBuildings.w3x
    16 KB · Views: 33
Status
Not open for further replies.
Top