• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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
891
> 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