| 01-03-2004, 07:50 PM | #1 |
I was hoping that there was a way to just find if a unit was within a specific region (not a specific unit, just any unit). Right now, I am being forced to pick every unit in playable map and checking if it is within the region. This stacks up really fast (I have about 100 regions to check) and it causes really bad lag. I was wondering if there was a way around it. |
| 01-03-2004, 08:15 PM | #2 |
Event: A unit is within range of regionX that event will sure do it :D |
| 01-03-2004, 11:26 PM | #3 |
Almost what I wanted, but I need it in the form of a condition rather than an event |
| 01-03-2004, 11:45 PM | #4 |
Condition: Boodlean Unit is in unit group Unit 000 <gen> is in unit group units in region 000... That should do it :D |
| 01-03-2004, 11:49 PM | #5 |
:bgrun: We are getting there... the only problem is is that the unit must be generic (ie, if ANY unit is in within the region). I was thinking if maybe I could do something like Pick every unit in <region> and add it to TempGroup If Temp Group contains no units then do Action |
| 01-03-2004, 11:57 PM | #6 |
You can do pick every unit in entire map and do if Picked Unit is in region... |
| 01-04-2004, 12:01 AM | #7 |
I do that now, but the problem is is that there are so many regions to check that it lags the system down (or... there is another possibility for the lag... hmm...). I was just wondering if there was another way to do it... oh well, thanks for the help guys. |
