• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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: 32
Status
Not open for further replies.
Top