the_ideal
user title
- Reaction score
- 61
Trigger:
- Marked For Death 2
- Events
- Time - Every 8.00 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in MarkedForDeath) Less than or equal to 5
- Then - Actions
- Else - Actions
- Set MarkedForDeath = (Random 5 units from MarkedForDeath)
- If - Conditions
- Set point1 = (Position of MarkedForDeathUnit)
- Set unitgroup = (Units within 800.00 of point1 matching (((Matching unit) is in MarkedForDeath) Equal to True))
- Unit Group - Pick every unit in unitgroup and do (Actions)
- Loop - Actions
- Unit - Create 1 Dummy for (Owner of MarkedForDeathUnit) at point1 facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Death Coil (dummy) to (Picked unit)
- Unit - Order (Last created unit) to Undead Death Knight - Death Coil (Picked unit)
- Loop - Actions
- Custom script: call RemoveLocation (udg_point1)
- Custom script: call DestroyGroup(udg_unitgroup)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Could someone check this for leaks? Does the point leak because I reference it multiple times?
Thanks.