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

Is this Leaking??

Status
Not open for further replies.
Level 10
Joined
Jan 24, 2009
Messages
606
  • Holy Taunt Healing
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Taunt
    • Actions
      • Set HT_Point = (Position of (Triggering unit))
      • Set HT_Group = (Units within 550.00 of HT_Point matching ((((Triggering unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True) and ((((Triggering unit) is A structure) Equal to False) and (((Triggering unit) is Mechanical) Equal to False))))
      • Set level = (Level of Holy Taunt for (Triggering unit))
      • Unit Group - Pick every unit in HT_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 DUMMY for (Owner of (Triggering unit)) at HT_Point facing Default building facing degrees
          • Unit - Add a 1.37 second Generic expiration timer to (Last created unit)
          • Unit - Add Holy Taunt Dummy to (Last created unit)
          • Unit - Set level of Holy Taunt Dummy for (Last created unit) to level
          • Unit - Order (Last created unit) to Human Paladin - Holy Light (Picked unit)
      • Custom script: call RemoveLocation(udg_HT_Point)
      • Custom script: call DestroyGroup(udg_HT_Group)
      • Set level = 0

I think it's leaking but i can't seem to figure WHY!

Cuse when i use the spell alot of times it's Lagging suddenly When the unit is casting it.....
 
Level 3
Joined
Aug 22, 2009
Messages
51
well,
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
  • Set HT_Group = (Units within 550.00 of HT_Point matching ((((Triggering unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True) and ((((Triggering unit) is A structure) Equal to False) and (((Triggering unit) is Mechanical) Equal to False))))
if you want to refer for the unit wich is being picked in the group, you need to call her Matching Unit, not triggering unit.
it should be like this:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
  • Set HT_Group = (Units within 550.00 of HT_Point matching ((((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False))))
 
Status
Not open for further replies.
Top