• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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