• 🏆 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] Create Unit _ LOcation

Not open for further replies.
Level 2
Sep 14, 2007
I want to make a trigger that creates 3 units betwwen two units, So:
[unit one] created units [unit two]
The created units shall be near unit one but created on the 'way' to unit two.....

Pls Help
Level 13
Nov 22, 2006
  • Actions
    • Set Unit1 = <unit 1>
    • Set Unit2 = <unit 2>
    • Set Loc1 = Position of Unit1
    • Set Loc2 = Position of Unit2
    • Set Distance = Distance between Loc1 and Loc2
    • Set Angle = Angle between Loc2 and Loc1
    • Set Loc = Loc2 offset by (Distance - (Distance/4)) towards Angle
    • Unit - Create 3 <unit type> at Loc facing 0.00 (or whatever)
    • Custom script: call RemoveLocation(Loc1)
    • Custom script: call RemoveLocation(Loc2)
    • Custom script: call RemoveLocation(Loc)
Not open for further replies.