mirror of
https://github.com/sethduda/AdvancedSlingLoading.git
synced 2024-08-30 17:32:12 +00:00
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:
parent
15bc5f1318
commit
d1f343862e
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user