Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Random Point In Circle
Random Point In Circle
12-29-2003, 08:16 PM
#1
Eriond
How would I specify a random point in a circle with X radius?
Let's say I want to create a unit
Unit - Create a unit at (Random point in circle)
How would I get a random point in a circle?
12-29-2003, 08:22 PM
#2
Vexorian
Point with Polar OffCet ((CENTER of Circle) off set towards (Math Random number betwen 0, and RADIUS) towards Math Random Number Betwen 0 and 360
Hope you understoonçd
12-29-2003, 08:24 PM
#3
Eriond
Knew there was a a way. Thanks.