• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Training units

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,658
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