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

[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