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

Spawning Hostile Units & Seeting Acquisition Range for All

Status
Not open for further replies.
Level 11
Joined
Dec 13, 2008
Messages
1,047
Hello everyone!! I am making a trigger for my map that basically spawns a bunch of hostile units at specific regions since world editor can only support so many hostile units placed on a map at once.
Yet, due to the size of my map, acquisition range is important. (200 vs 600). So I was wondering if there is a way set an acquisition range for all of the units spawned, rather than each individual one. Ill show you what I mean.
  • Spawning
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Thunder Lizard for Neutral Hostile at (Center of H1 <gen>) facing 15.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Thunder Lizard for Neutral Hostile at (Center of H2 <gen>) facing 85.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Rogue for Neutral Hostile at (Center of H3 <gen>) facing 225.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Windwitch for Neutral Hostile at (Center of H5 <gen>) facing 85.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Rogue for Neutral Hostile at (Center of H6 <gen>) facing 360.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Rogue for Neutral Hostile at (Center of H4 <gen>) facing 135.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Windwitch for Neutral Hostile at (Center of H10 <gen>) facing 330.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Windwitch for Neutral Hostile at (Center of H7 <gen>) facing 15.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Windwitch for Neutral Hostile at (Center of H11 <gen>) facing 90.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Rogue for Neutral Hostile at (Center of H9 <gen>) facing 270.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
      • Unit - Create 1 Harpy Rogue for Neutral Hostile at (Center of H8 <gen>) facing 200.00 degrees
      • Unit - Set (Last created unit) acquisition range to 200.00
As you can see, I am setting the acquisiton range for each "last created unit." This is messy and time consuming, so I was wondering if there is an easier/better way to do this? Thanks a lot!
 
Status
Not open for further replies.
Top