• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

deleting wisp after he's finished

Status
Not open for further replies.
Level 21
Joined
Mar 29, 2020
Messages
1,237
something like this:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Unit - Remove (Triggering unit) from the game
you need to decide what you want to happen to the unit if the building gets destroyed while being built or cancelled and add that to the trigger. (maybe just hide the unit while the building is going up and only remove it from the game once the building is complete)
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,538
something like this:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Unit - Remove (Triggering unit) from the game
you need to decide what you want to happen to the unit if the building gets destroyed while being built or cancelled and add that to the trigger. (maybe just hide the unit while the building is going up and only remove it from the game once the building is complete)
The unit in that Event is the building. Blizzard for whatever reason left out the option to interact with the "builder".

There are some tricks to detect the builder though, as the worker in the case for Orc/Night Elf structures is actually hidden at the very center of the structure it's building. Because of this you can use a Pick Every Unit function with a very small radius starting at the center of the structure in order to find the worker.
 
Status
Not open for further replies.
Top