• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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?
 
Level 4
Joined
Sep 9, 2004
Messages
112
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..
 
Level 5
Joined
Aug 1, 2007
Messages
307
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.
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
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.
Top