• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Simple

Status
Not open for further replies.
Level 8
Joined
Aug 4, 2006
Messages
357
i'm pretty sure it'll leak. the only way i can think of to get a random point is to generate a random x and random y coordinate inside the region's boundaries, and make that into a point. if you know how to use jass, you don't need to make point variables since you can do what i said above and just save the coordinates instead of the point variable.

Edit: okay i'm pretty damn sure regions are just 4 real values: minX, minY, maxX, and maxY (and possibly centerX, centerY). so, they do NOT contain ANY of the points located within their bounds.
 
Status
Not open for further replies.
Top