Skip to content

Commit

Permalink
Adding SA_ASL_HEAVY_LIFTING_ENABLED variable that allows missions cre…
Browse files Browse the repository at this point in the history
…ator 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];
  • Loading branch information
sethduda committed Feb 5, 2016
1 parent 15bc5f1 commit d1f3438
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
};
};
Expand Down

0 comments on commit d1f3438

Please sign in to comment.