- Joined
- Jul 26, 2008
- Messages
- 1,009
Alright I'm wondering two questions, both related. The first:
How do you find the X and Y coordinates of a location on the map while in the world editor?
This willl help me do the next part, which is only create a unit in the confines of a square.
I know it's basically you just set each point of the square and it only creates it in that confine, but I don't remember where I saw it. It uses >= and <=. Real easy stuff.
I think it just generates a Random X and Random Y. So long as the designated X is less than or equal to 4 and greater than or equal to 2, and the designated Y is <= 4 and X >= 2 then it's fine. There's a bit more to it, I know that.
Reason is I don't want to use a huge rect to cover 75% of the map when there's a lot of other rects already on the map. Thanks for help
How do you find the X and Y coordinates of a location on the map while in the world editor?
This willl help me do the next part, which is only create a unit in the confines of a square.
I know it's basically you just set each point of the square and it only creates it in that confine, but I don't remember where I saw it. It uses >= and <=. Real easy stuff.
I think it just generates a Random X and Random Y. So long as the designated X is less than or equal to 4 and greater than or equal to 2, and the designated Y is <= 4 and X >= 2 then it's fine. There's a bit more to it, I know that.
Reason is I don't want to use a huge rect to cover 75% of the map when there's a lot of other rects already on the map. Thanks for help