• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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