Home   Help Search Login Register  

Author Topic: Random Mortar Explosion  (Read 973 times)

0 Members and 1 Guest are viewing this topic.

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Random Mortar Explosion
« on: 05 Aug 2007, 14:13:07 »
I've created a basic little script which makes shells drop randomly between two Game Logics named Pos1 and Pos2 I was hoping maybe someone could help me take it one step further by making the shells land say randomly within a 100 metre radius of either game logic? Using the script below I can make them drop randomly between the two posistions but I've no idea where to go from there on in order to make them drop randomly all around the two posistions.

Code: [Select]
#Start
_num = Mortar_bang
_rand = random 3
_num = _rand - (_rand mod 1)

?_num == 1 : Mortar_bang = 1
?_num == 2 : Mortar_bang = 2
?_num == 0 : goto "start"
exit
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Random Mortar Explosion
« Reply #1 on: 05 Aug 2007, 14:42:37 »

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re: Random Mortar Explosion
« Reply #2 on: 05 Aug 2007, 14:49:32 »
Thankyou Mandoble :)
"If I remain lost and die on a cross, atleast I wasn't born in a manger"