Home   Help Search Login Register  

Author Topic: Scatter script  (Read 1420 times)

0 Members and 1 Guest are viewing this topic.

Offline ZapBrannigan

  • Members
  • *
Scatter script
« on: 05 Feb 2010, 09:19:39 »
Hi, how can i make a script that can take a group, break it into single units, then give each single unit a random direction and let them sprint (full speed, Careless) in that direction, then after 1 minute stops them and makes them prone wherever they happen to be then exits. Im making a mission where some civilians are attacked then scatter in random directions.

I tried some stuff but it doesnt seem to work.

thanks for anybodies help.

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Scatter script
« Reply #1 on: 05 Feb 2010, 22:13:45 »

 I have this old mission i used myself some time ago , it does what you ask but its from a trigger or unit firing. i am sure it can be vastly improved .
i havve attached it below

hope it helps.

Db
I love ofp

Offline ZapBrannigan

  • Members
  • *
Re: Scatter script
« Reply #2 on: 06 Feb 2010, 15:13:04 »
perfect!, solved,

thanks