Lorenzo 0 Posted March 18, 2002 i have do it   i'm happy, it's work fine ... thank's to Rastavovich for his help . the script is good and , it's do for make a group or other to airdrop from a plane or helico with a timer between drop. i have seen an other way to do this but it's with a lot of trigger (1 by soldier to drop) i it's not very good for the processor's ressource ... this is it : ; ------------------------------------------ ;[helico,s1,1] exec "para2.sqs" ;helico = nom de l'helico ;s1 = chef du group ou membre du group ;1 = ecart de temps entre chaque larguage ; ------------------------------------------ ;TitleText["trigger parachutage atteint","PLAIN DOWN"] _helico = _this select 0 _chefgroupe = _this select 1 _temps = _this select 2 _tab = Units Group _chefgroupe _nb = Count(_tab) _i=0 #boucle ~_temps _soldat = _tab Select _i _soldat Action ["EJECT",_helico] UnassignVehicle _soldat _i=_i+1 ?(_nb == _i):Goto "fin" Goto "boucle" #fin ----------------------------- i put traduction here : ; ------------------------------------------ ;[helico,s1,1] exec "para2.sqs" ;helico = the name of the air engine ;s1 = the name of the soldier (chef!?) from a group that we want airdrop ;1 = time between each drop ; ------------------------------------------ i have make a mission test with this script, if you want it i can send it or perhaps you know a web site who take it ? ------------- i put it here : http://complet1.free.fr/divers/parachutage.Eden.rar say what you think about it Share this post Link to post Share on other sites
Rastavovich 0 Posted March 18, 2002 Looks like a handy script, even if you don't need the "_i"-variable. instead of _i you could use directly _nb:  _nb = Count(_tab) - 1 #boucle  ~_temps  _soldat = _tab Select _nb  _soldat Action ["EJECT",_helico]  UnassignVehicle _soldat  _nb = _nb - 1  ?(_nb == -1):Goto "fin"  Goto "boucle" but that is simply cosmetic. As I said, nice script. Share this post Link to post Share on other sites
DnA 5154 Posted March 18, 2002 Yes, you are right Rastavovich. It's a nice script and since it will only loop 1 to 12 times, it won't be bad on your processor. I would go for the version without the _i-variable, because it's always better to have your script as efficient as possible. Although this isn't important in this case, it's a good 'habit' to take on. Share this post Link to post Share on other sites