• 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] Will this leak Matter?

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
Unit - A unit Starts the effect of an ability
((Unit-type of (Triggering unit)) Equal to Unit1) or ((Unit-type of (Triggering unit)) Equal to Unit2)
(Ability being cast) Equal to Mines
Set TempRegion = Mine Field <gen>
Set TempPoint = (Center of TempRegion)
Set TempPoint2 = (Position of (Triggering unit))
Region - Center TempRegion on TempPoint
Unit - Create 1 Mine for (Owner of (Triggering unit)) at (Random point in Mine Field <gen>) facing Default building facing degrees
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveRect(udg_TempRegion) //Region
Custom script: call RemoveLocation (udg_TempPoint2)


Leak is:
(Line: 8) (Word: 11) Location Leak
Unit - Create 1 Mine for (Owner of (Triggering unit)) at (Random point in Mine Field <gen>) facing Default building facing degrees
Unit - Create 1 Mine for (Owner of (Triggering unit)) at ^Leak
 
Status
Not open for further replies.
Top