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

Do I have to use multiple variables for multiple triggers?

Status
Not open for further replies.
Level 11
Joined
Dec 31, 2007
Messages
780
i have a doubt...

i have a large map full of variables, triggers, units, and unfortunatly ... leaks

if i want to remove (for ie) 50 position leaks (including different kinds of triggers) do i have to use different variables on each? if i use the same on every one of them could this cause troubles?, can i use arrays? if so.. how can i make a custom script to refer to an array...
call RemoveLocation(udg_Temp_Point[34]) ?

also for unit group leaks
 
Level 22
Joined
Feb 26, 2008
Messages
892
> is posibble to remove the data stored on an array?

I don't really know what you mean here. You can always set a unit variable to null, I suppose. But if you're dealing with locations or unit groups, you need to remove them first....
 
Level 11
Joined
Dec 31, 2007
Messages
780
yes thats what i wanted to know... so... if i have 100 triggers with position leaks on each i can use the same array to store the data...

from LocArray[1] to LocArray[100]

thats gonna make my problems easier to solve... thx ^^
 
Status
Not open for further replies.
Top