• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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