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

Why does this trigger create huge lag?

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
42
  • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Wild Growth
  • Actions
    • Set WildGrowthPoint = (Position of (Casting unit))
    • Set TempGroup = (Units within 300.00 of WildGrowthPoint matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))
    • Unit Group - Pick every unit in TempGroup and do (Actions)
      • Loop - Actions
        • Unit - Create 1 Dummy [Wild GRowth] for (Owner of (Triggering unit)) at WildGrowthPoint facing 0.00 degrees
        • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        • Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
    • Custom script: call DestroyGroup (udg_TempGroup)
    • Custom script: call RemoveLocation (udg_WildGrowthPoint)
 
Level 8
Joined
Apr 30, 2009
Messages
338
it counts dead units too so if you have had dummy units there before, their invisible corpses also count as units. Add unit is alive = true into your unit group condition and try it
 
Status
Not open for further replies.
Top