OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: ZapBrannigan on 05 Feb 2010, 09:19:39

Title: Scatter script
Post by: ZapBrannigan 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.
Title: Re: Scatter script
Post by: DeanosBeano 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
Title: Re: Scatter script
Post by: ZapBrannigan on 06 Feb 2010, 15:13:04
perfect!, solved,

thanks