HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

The Size of a Region Variable

08-06-2004, 04:24 PM#1
Coydog
This is a "help me" thread, just a quick question...

To be able to use the Move Region action, I know I have to define a region variable, not just have a region on the map. My question is, how do I set the size of the region? Basically I'm trying to set the Xmax, Ymax, ect. using triggers, not JASS. Is this possible? If so, anyone want to help me out and explain how?
08-06-2004, 04:40 PM#2
Arohk
Quote:
Originally Posted by Coydog
This is a "help me" thread, just a quick question...

To be able to use the Move Region action, I know I have to define a region variable, not just have a region on the map. My question is, how do I set the size of the region? Basically I'm trying to set the Xmax, Ymax, ect. using triggers, not JASS. Is this possible? If so, anyone want to help me out and explain how?

i didnt know you can change the size of regions(?)

look in the botton left corner in your editor, there are the X and Y coordninates where your mouse is at the moment.

Use the event, unit enters region- convert point to coordinates (0.00, 0.00,0.00,0.00)
you can store this 4 values into variables to change the size of the region by changing them
08-06-2004, 07:37 PM#3
Coydog
Quote:
Originally Posted by Arohk
i didnt know you can change the size of regions(?)

look in the botton left corner in your editor, there are the X and Y coordninates where your mouse is at the moment.

Use the event, unit enters region- convert point to coordinates (0.00, 0.00,0.00,0.00)
you can store this 4 values into variables to change the size of the region by changing them

Thanks for your help, that is exactly what I needed, if it took me a minute to find it. Anyone else reading this, the "convert coordinates to region" option is inside the dialog box where you define the region (the trigger one, not the region palette)