• 🏆 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!

[Trigger] Training units

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,657
Well... you didnt ask how :D
Anyway, there are two unit training events that would work.
1, A unit enters (entire map)
2, A unit finishes training a unit.

I suggest you to use the second.
Do some conditions on what building or unit type you want to create two times.
As actions, you create a unit of unit type of the trained unit for the owner of the trained unit on the location of the trained unit with preferably the facing angle of the trained unit.

You can even order that unit to move to the rally point of the triggering unit.

  • Double Train
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
    • Actions
      • Set TempUnit = (Trained unit)
      • Set TempLocation = (Position of TempUnit)
      • Unit - Create 1 (Unit-type of TempUnit) for (Owner of TempUnit) at TempLocation facing (Facing of TempUnit) degrees
      • Custom script: call RemoveLocation(udg_TempLocation)
 
Status
Not open for further replies.
Top