• 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] removing this array point custom script

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
to clean leaks

the point was set by using this trigger

  • Set DU_frostbeampointholder[(Player number of (Owner of (Triggering unit)))] = (Target point of ability being cast)
so what is the custom script that removes it?

please only post if you are sure it is correct, since i have no way to testing if the script i copy paste from you is correct and i really want to have a leakfree map.

thx
 
Level 4
Joined
May 6, 2007
Messages
87
Now I'm curious as to whether I'm removing certain leaks correctly.

If I had a leak like this:
  • Set SpawnCreeps_Points[0] = (Center of RSpawn 1 <gen>)
  • Set SpawnCreeps_Points[1] = (Center of RSpawn 2 <gen>)
Would this effectively remove the leak?
  • Custom script: call RemoveLocation(udg_SpawnCreeps_Points[0])
  • Custom script: call RemoveLocation(udg_SpawnCreeps_Points[1])
 
Level 9
Joined
Jan 14, 2008
Messages
366
sry =P

thanks alot

hm sry but in order to keep the trigger mui i can not use the method you guys provide. i cant store the player number as "index". i need to get the player number from inside the remove function.

would this work ?

  • call RemoveLocation (udg_POINT[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))+1])
 
Last edited by a moderator:
Status
Not open for further replies.
Top