Hero Revive Leak?

95blojoe

New Member
Reaction score
7
Trigger:
  • Events
    • Unit - A unit owned by Player 1 (red) dies
    • Unit - A unit owned by Player 2 (blue) dies
    • Unit - A unit owned by Player 3 (teal) dies
    • Unit - A unit owned by Player 4 (Purple) dies
    • Unit - A unit owned by Player 6 (Orange) dies
    • Unit - A unit owned by Player 7 (green) dies
    • Unit - A unit owned by Player 8 (pink) dies
    • Unit - A unit owned by Player 9 (gray) dies
    • Unit - A unit owned by Player 10 (light blue) dies
    • Unit - A unit owned by Player 11 (dark green) dies
    • Conditions
      • ((Triggering unit) is a Hero) Equal to true
    • Actions
      • If (all conditions true) then do (then actions) else do (else actions)
        • If - conditions
          • (Owner of (Triggering unit)) Equal to Player 1 (Red)
          • (Owner of (Triggering unit)) Equal to Player 2 (blue)
          • (Owner of (Triggering unit)) Equal to Player 3 (teal)
          • (Owner of (Triggering unit)) Equal to Player 4 (purple)
          • (Owner of (Triggering unit)) Equal to Player 6 (orange)
        • Then -Actions
          • Hero - Instantly revive (Triggering unit) at (Cented of Region 000 <gen>), Show revival graphics
        • Else - Actions
          • If (All conditions are true) then do (then actions) else do (Else actions)
            • If - conditions
              • (Owner of (Triggering unit)) Equal to Player 7 (green)
              • (Owner of (Triggering unit)) Equal to Player 8 (pink)
              • (Owner of (Triggering unit)) Equal to Player 9 (gray)
              • (Owner of (Triggering unit)) Equal to Player 10 (light blue)
              • (Owner of (Triggering unit)) Equal to Player 11 (Darl Green)
            • Then - actions
              • Hero - Instantly revive (triggering unit) at (Center of Region 000 copy <gen>), show revival graphics
 

Tom Jones

N/A
Reaction score
437
(Cented of Region 000 <gen>) leaks. Even though the region is static/constant, the action still creates a point which must be removed.
 

SwedishChef

New Member
Reaction score
32
create point variable. In trigger before the reviving do this :
Point (your variable) = center of your region
Revive triigering unit at point

leaks gone
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
create point variable. In trigger before the reviving do this :
Point (your variable) = center of your region
Revive triigering unit at point

leaks gone

You are missing a key step... Add "call RemoveLocation(udg_Point)" after reviving t he unit.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, you do remove it in MUI triggers too, just at the very end of the trigger, if you'd need the point during the whole trigger and you have waits :eek:.

But since this already is MUI, and there are no waits, you should destroy it right away ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top