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

Help with trigger location set.

Status
Not open for further replies.
Level 3
Joined
Dec 8, 2008
Messages
29
  • ((Region centered at (Position of RushUnit[(Player number of (Triggering player))]) with size (200.00, 200.00)) contains RushVictim[(Player number of (Triggering player))]) Equal to False
((Region centered at (Position of RushUnit[(Player number of (Triggering player))]) with size (200.00, 200.00)) contains RushVictim[(Player number of (Triggering player))]) Equal to False


I am trying to absolve any and all leaks in my map, but I then ran into this. It is used in an ability trigger to place a region centered around the character that is 200/200. The ability is used a ton, so the location is constantly changing.

I wanted to create it for the trigger, use it, then destroy it at the end to prevent leaks, but how do I assign something like this to a variable to be destroyed?

The ability uses three seperate triggers, and it's multiplayer so I need to use an array with the array number being the player number so that multiple people can be using the ability at once with no bugs.

I just have no idea how to create a region that is 200/200 and assign it to a variable...

**Edit - The /trigger code seems to be messed up, it just displays it as a little box with a side scroll but none of my code...I repasted the code without the trigger code around it. Anyone know whats up with that?
 
Level 3
Joined
Dec 8, 2008
Messages
29
Gah, I found out why I couldn't. I was using a 'point' array instead of a 'region' array. It's letting me use it to create a region of size(x,y) now. Thanks a ton for the bump in the right direction!
 
Status
Not open for further replies.
Top