• 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.

Clearing Leaks

Status
Not open for further replies.
Level 19
Joined
Apr 10, 2010
Messages
2,789
Well maybe like this:

Solution 1:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set TempLoc[1] = (Center of (Playable map area))
      • Set TempLoc[2] = (Random point in (Playable map area))
      • Set TempLoc[3] = TempLoc[1] offset by (0.00, 0.00))
      • For each (Integer A) from 1 to 3(This would be the maximum number of indexes), do (Actions)
        • Loop - Actions
          • Custom script: call RemoveLocation(udg_TempLoc[GetForLoopIndexA()])
OR

Solution 2:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set TempLoc[1] = (Center of (Playable map area))
      • Set TempLoc[2] = (Random point in (Playable map area))
      • Set TempLoc[3] = TempLoc[1] offset by (0.00, 0.00))
      • Custom script: call RemoveLocation(udg_TempLoc[1])
      • Custom script: call RemoveLocation(udg_TempLoc[2])
      • Custom script: call RemoveLocation(udg_TempLoc[3])
Not sure though.
 
Last edited:
Status
Not open for further replies.
Top