Skip to content

Commit

Permalink
Merge branch 'master' into reworkPylonAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
neilzar authored Feb 17, 2019
2 parents 0d9470a + 1410b4c commit bdb7bfa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ switch _objectCategory do {
switch _objectType do {
case "AmmoBox": {
//--- Create parachute for vehicles in the air
if ((position _object select 2) > 20 && alive _object) then {
if ((position _object select 2) > 20 && alive _object && simulationEnabled _object) then {
_para = createvehicle ["B_Parachute_02_F",_objectPos,[],0,"none"];
_object attachto [_para,[0,0,1]];
};
Expand All @@ -92,7 +92,7 @@ switch _objectCategory do {
case "Tank";
case "WheeledAPC": {
//--- Create parachute for vehicles in the air
if ((position _object select 2) > 20 && alive _object) then {
if ((position _object select 2) > 20 && alive _object && simulationEnabled _object) then {
_para = createvehicle ["B_Parachute_02_F",_objectPos,[],0,"none"];
_object attachto [_para,[0,0,(abs ((boundingbox _object select 0) select 2))]];
};
Expand All @@ -101,7 +101,7 @@ switch _objectCategory do {
};
case "Soldier": {
//--- Create parachute for soldiers in the air
if ((position _object select 2) > 20 && alive _object) then {
if ((position _object select 2) > 20 && alive _object && simulationEnabled _object) then {
_para = createvehicle ["Steerable_Parachute_F",_objectPos,[],0,"none"];
_object moveindriver _para;

Expand Down

0 comments on commit bdb7bfa

Please sign in to comment.