11/*
2- File: arty.sqf
2+ File: arty.sqf
33
4- Author: Kibot
4+ Author: Kibot
55
6- Description:
7- Deploy a number of salvos of a
6+ Description:
7+ Deploy a number of salvos of the supplied ammo type
88
9- Parameter(s):
10- _this select 0 - POSITION - Center position of 'Strike Area'
11- _this select 1 - NUMBER - Number of ordinance salvos
12- _this select 2 - NUMBER - Radius of 'Strike Area'
13- _this select 3 - NUMBER - Interval between salvos (in seconds)
14- _this select 4 - NUMBER - Number of ordinance rounds per salvo
15- _this select 5 - NUMBER - Support type enumerator (1 - Artillery, 2 - Mortar Shell, 3 - JDAM)
16- _this select 6 - NUMBER - Cost of Support type
17- _this select 7 - STRING - Ammo type used for salvos
9+ Parameter(s):
10+ _this select 0 - POSITION - Center position of 'Strike Area'
11+ _this select 1 - NUMBER - Number of ordinance salvos
12+ _this select 2 - NUMBER - Radius of 'Strike Area'
13+ _this select 3 - NUMBER - Interval between salvos (in seconds)
14+ _this select 4 - NUMBER - Number of ordinance rounds per salvo
15+ _this select 5 - NUMBER - Support type enumerator (1 - Artillery, 2 - Mortar Shell, 3 - JDAM)
16+ _this select 6 - NUMBER - Cost of Support type
17+ _this select 7 - STRING - Ammo type used for salvos
1818
19- Returns:
20- - Nil -
19+ Returns:
20+ - Nil -
2121*/
2222
2323params [" _position" , " _salvos" , " _radius" , " _interval" , " _rps" , " _supportype" , " _cost" , " _ammotype" ];
@@ -33,15 +33,15 @@ sleep 30;
3333
3434// NUMBER OF SALVOS
3535while {_salvos > 0 } do {
36- _rps = _rpsinit ; // Reset number of rounds for next salvo
37- while {_rps > 0 } do {
38- _bomb = _ammotype createVehicle [(_position select 0 )+ (random _radius )- (random _radius ), (_position select 1 )+ (random _radius )- (random _radius ), (_position select 2 )];
39- sleep ((random 20 )/ 10 );
40- _rps = _rps - 1 ;
41- };
42-
43- _salvos = _salvos - 1 ; // remove 1 salvo to counter
44- sleep _interval ;
36+ _rps = _rpsinit ; // Reset number of rounds for next salvo
37+ while {_rps > 0 } do {
38+ _bomb = _ammotype createVehicle [(_position select 0 )+ (random _radius )- (random _radius ), (_position select 1 )+ (random _radius )- (random _radius ), (_position select 2 )];
39+ sleep ((random 20 )/ 10 );
40+ _rps = _rps - 1 ;
41+ };
42+
43+ _salvos = _salvos - 1 ; // remove 1 salvo to counter
44+ sleep _interval ;
4545};
4646
4747hint " Ordinance complete" ;
0 commit comments