| 09-11-2004, 08:15 PM | #1 |
Iv been told you can merge regions with the WEU but the closest i can get it adding a Rect to a region. I want 4 rect merged into 1 large non-rectangler rect. |
| 09-11-2004, 11:00 PM | #2 |
well, first you need for rects (r1, r2, r3, r4) then we take it one at a time and add them to REG1 add rect to region r1 to REG1 add rect to region r2 to REG1 add rect to region r3 to REG1 add rect to region r4 to REG1 you wont get a circle, it will be the same shape as the three rects are in in the first place. so if its like: ___________ |....________|______ |r1|...............|.......... | |....|... r2 ......|.......... | | ...|_______|______| |__________| you will end up with __________ |..................|______ |..............................| |........ REG1 ............| |...................._____| |__________| and not some wierd like curved shape. note: that was really hard to draw.. edit: dang it! pictures got messed up |
| 09-12-2004, 02:17 AM | #3 |
ok i have 4 rects and I add them to a region (mainland). now how do i create a unit at a random point in mainland? I can only create units at rects not regions. |
| 09-12-2004, 02:52 AM | #4 |
well.. Are you adding them to a variable region? or another rect? or can you add them to another rect? if you can add them to a rect tho.. but gah... hold on ill get my WE real quick. edit: oh youre using WEU. so i cant help ya too much. sry. |
| 09-12-2004, 02:57 AM | #5 |
-sigh- Im adding them to a variable region. I can't add them to rects... It works for you right? what are you using, the basic editor or _____? |
| 09-12-2004, 04:17 AM | #6 |
no, i havent tried it. ive just looked at triggers and a few threads. but now i just looked at common.j. it doesnt look like regions have much worth.. the only real uses i see are the functions IsUnitInRegion, and checking when a unit leaves and enters a region. beyond that, blizzard uses regions for pretty much every rect function in the GUI. so basicly... to my knowledge, you cant create a region in a region. if you give me more detail there may be a workaround tho. |
| 09-12-2004, 05:01 AM | #7 |
What im trying to do is have it so every night more Deer are spawned at randome points all over the map. but my problem is they also spawn in the rivers. So i thought if I could merge a few regions (rect) then i could divide the number of deer spawned into 3 (there are 3 land areas) and have it so the deer spawn at randome points only on the 3 landareas. Edit: I just figured it out! and its so simple! Make a variable rect array "LandArea1" then set LandArea1 (1) = rect1, LandArea1 (2) =rect2 then just have it spawn 1 deer at randome point at LandArea(Randome Number betreen 1 to 2) and prest-O! Its so simple I cant beliave i did not think of it sooner! |
| 09-12-2004, 02:52 PM | #8 |
ya.. but wouldnt setting a region to a rect make it rectangular again? |
