| 05-03-2007, 08:44 AM | #2 |
yes. you must remove the location before you change its value. every time. |
| 05-03-2007, 10:07 AM | #3 |
I see... well... this will take some time to do (this is pretty much a wisp wheel type object thing which I learned from scratch)... um... +rep? |
| 05-03-2007, 10:31 AM | #4 |
Another way would be to move the location, you can do it with the following command, so you don't need to clear it when you use the same variable all the time. (As much as i know, i can be wrong of course, but then someone will say it ^^) JASS:native MoveLocation takes location whichLocation, real newX, real newY returns nothing A GUI call would look like Trigger: Custom script: call MoveLocation(udg_WheelPoint,GetRandomReal(MinX,MaxX),GetRandomReal(MinY,MaxY))MinX and MinY are the lower bounds of your rects and MaxX and MaxY are the upper bounds. |
| 05-03-2007, 11:49 AM | #5 |
Well... there's a mild problem there... one being I'm using this for a wisp wheel based function type thing (as said before), this was just a sample of what COULD be going on. And um... frankly... I don't know how to use JASS very well. If someone can teach me how to use polar offsets, that'd save time and a shizzum load of commands in my triggers. |
| 05-03-2007, 10:10 PM | #6 |
Polar offset is rather simple actually. Trigger: Set SomeNewPoint = SomePoint offset by 200.00 towards 96.70 degrees
|
| 05-03-2007, 11:20 PM | #7 |
it will leak cus of the random points |
