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

[Solved] Removing leaks

Status
Not open for further replies.
Level 7
Joined
Jul 9, 2012
Messages
159
Hey Hive!
I have a few problems with removing points leak, when I use it as an array with a "Custom value of unit".
Here is a silly example:
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Animate Dead
  • Actions
    • Set AnimateDeadUnit = (Triggering unit)
    • Set AnimateDeadPoint[(Custom value of AnimateDeadUnit)] = (Position of AnimateDeadUnit)
    • Custom script: call RemoveLocation(udg_AnimateDeadPoint[?????])
What text should I write in the custom script to remove the point when i'm using "Custom Value of Unit"? :)
btw, sorry for my bad grammar.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
This would also do the trick, but the method of Nichilus is he one I'd recommend.

  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Animate Dead
  • Actions
    • Set AnimateDeadUnit = (Triggering unit)
    • Set AnimateDeadPoint[(Custom value of AnimateDeadUnit)] = (Position of AnimateDeadUnit)
    • Custom script: call RemoveLocation(udg_AnimateDeadPoint[GetUnitUserData(udg_AnimateDeadUnit)])
 
Status
Not open for further replies.
Top