Thread: scripting help?
View Single Post
Old
  (#44)
bluebrooks is Offline
Senior Member
 
Posts: 156
Join Date: Jun 2002
   
Default 08-29-2003, 08:38 AM

the coordinate thing won't work.
it would be....
$mine1.origin = ( local.num1 local.num2 local.num3)
so leave out the "wait"s

also, although this will work, your mines will be all over the place. as in, under the board, up in the air, off the board completely, etc.
it would work better on a flat board, like snowy park. so you could make the x and y coords random, and keep the z coord constant, so they all blow up around foot level.
but even that, you'd need to find the center of the board and set the x and y's based off that.

for instance, say the center of the board is ( 5000, -4000, 500)
and the board stretches out for 3000 units to hit each side from the center,
then make
local.x = (randomint(6000) + 2000))
local.y = (randomint(6000) - 7000))
that would make x a number from 2000 to 8000 (+ or - 3000 from center)
and y would be a number from -7000 to -1000 (again, + or - 3000 from center)
  
Reply With Quote