• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,583
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