Adding SA_ASL_HEAVY_LIFTING_ENABLED variable that allows missions creator to disable heavy lifting

Add the following to your init.sqf file to disable heavy lifting:
missionNamespace setVariable
["SA_ASL_HEAVY_LIFTING_ENABLED",false,true];

Add the following to your init.sqf file to enable heavy lifting (enabled
by default):
missionNamespace setVariable ["SA_ASL_HEAVY_LIFTING_ENABLED",true,true];
This commit is contained in:
sethduda 2016-02-05 18:56:22 -05:00
parent 15bc5f1318
commit d1f343862e

View File

@ -196,7 +196,9 @@ SA_Rope_Attach_Cargo_Ropes = {
[_target, [(_centerOfMass select 0) - _widthOffset, (_centerOfMass select 1) - _lengthOffset, (_centerOfMass select 2) + _heightOffset], [0,0,-1]] ropeAttachTo (_ropes select 2);
[_target, [(_centerOfMass select 0) - _widthOffset, (_centerOfMass select 1) + _lengthOffset, (_centerOfMass select 2) + _heightOffset], [0,0,-1]] ropeAttachTo (_ropes select 3);
[_target, _heli, _ropes] spawn SA_Rope_Adjust_Mass;
if(missionNamespace getVariable ["SA_ASL_HEAVY_LIFTING_ENABLED",true]) then {
[_target, _heli, _ropes] spawn SA_Rope_Adjust_Mass;
};
};
};
};