• 🏆 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] Train 2 units at the same time

Status
Not open for further replies.
Level 7
Joined
Aug 13, 2011
Messages
142
What I need is something like a zerg zergling, you train at the cost of one unit and it trains 2 units. for example, i want to train a footman, i train a footman for the cost of 1( gold, lumber, food) after training instead of a single footman trained, there are 2.

i tried to this but only ONE barracks can do it.:ogre_rage:NOOB HERE!
 
Level 7
Joined
Sep 9, 2007
Messages
253
  • MyTrigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Footman
    • Actions
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees

  • MyTrigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Footman
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
Edit: Almia why so fast? I was fising them immediately haha. I wanted to show the difference :)
 
Status
Not open for further replies.
Top