[Trigger] Does this leak?

Status
Not open for further replies.
Level 9
Joined
May 5, 2007
Messages
253
  • Unit - A unit enters Region 018 <gen>
  • Set Point = (Center of Region 006 <gen>)
  • Unit - Kill (Triggering unit)
  • Unit - Create 1 Hunter for (Owner of (Entering unit)) at (Center of Region 006 <gen>) facing Default building facing degrees
  • Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Last created unit)) over 1.00 seconds
  • Hero - Create Novice Blade and give it to (Last created unit)
  • Set SaveLoadPlayerHeroSingle[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
  • Wait 1.00 seconds
  • Unit - Create 1 Backpack for (Owner of (Entering unit)) at (Center of Region 006 <gen>) facing Default building facing degrees
  • Set SaveLoadHasLoaded[(Player number of (Owner of (Triggering unit)))] = True
  • Custom script: call RemoveLocation(udg_Point)
im just wondering if this leaks does anyone know?
 
It doesn't even look like he uses the variable at all so thus just deleting the variable from the trigger would be a better idea IMO..
 
Ah in the "kill unit section" the a unit corpse will spawn, unless you set the unit not to decay, but if you wanted that to happen no problem.

If you didnt, use "replace" or "remove" unit strings.
 
leaks...
  • Unit - Create 1 Hunter for (Owner of (Entering unit)) at (Center of Region 006 <gen>) facing Default building facing degrees
Corrected:
  • Unit - Create 1 Hunter for (Owner of (Entering unit)) at (Point) facing Default building facing degrees
 
Status
Not open for further replies.
Back
Top