This commit is contained in:
HARLAN
2013-11-26 18:25:00 -05:00
parent 5d374fa928
commit 9936b4645b

View File

@@ -4,19 +4,19 @@ _v=_this select 0;
_int=_this select 1; _int=_this select 1;
_list=[]; _list=[];
_lifecheck=true; _lifecheck=true;
if(count _this>2)then{ if (count _this > 2) then {
_lifecheck=_this select 2 _lifecheck=_this select 2
}; };
_int=_int min 3; _int=_int min 3;
if(!((_v isKindOf"Air")OR{((_v isKindOf"LandVehicle")OR{(_v isKindOf"Ship")})}))exitWith{}; if (!((_v isKindOf"Air") OR {((_v isKindOf "LandVehicle") OR {(_v isKindOf "Ship")})}))exitWith{};
_effect2pos=_v selectionposition"destructionEffect2"; _effect2pos=_v selectionposition"destructionEffect2";
while{_int>1}do{ while {_int>1} do {
_int=_int-1; _int=_int-1;
_t=(random 45)+1; _t=(random 45)+1;
_list=_list+[_t]; _list=_list+[_t];
}; };
{ {
sleep _x; sleep _x;
if((_lifecheck&&(alive _v))||(isnull _v)||(((getposASL _v)select 2)<0))exitwith{}; if ((_lifecheck && (alive _v))||(isnull _v)||(((getposASL _v)select 2) < 0))exitwith{};
"SmallSecondary"createvehicle(_v modelToWorld _effect2pos); "SmallSecondary" createvehicle(_v modelToWorld _effect2pos);
}foreach(_list); }foreach (_list);