Change to enableRopeAttach
This commit is contained in:
parent
c7203358b0
commit
eeeb863caf
|
@ -22,7 +22,7 @@ _truck_to_load = objNull;
|
|||
if ( _truck_load < _maxload ) then {
|
||||
_truck_to_load = _next_truck;
|
||||
_ammobox attachTo [ _truck_to_load, _offsets select _truck_load ];
|
||||
_ammobox enableRopeAttach false;
|
||||
[_ammobox, false] remoteExec ["enableRopeAttach"];
|
||||
_truck_to_load setVariable ["GRLIB_ammo_truck_load", _truck_load + 1, true];
|
||||
if ( !isDedicated ) then {
|
||||
hint localize "STR_BOX_LOADED";
|
||||
|
|
|
@ -23,7 +23,7 @@ if ( _truck_to_unload getVariable ["GRLIB_ammo_truck_load", 0] > 0 ) then {
|
|||
_offset = _offset - 2.2;
|
||||
sleep 0.5;
|
||||
[_next_box, true] remoteExec ["F_objectProtection"];
|
||||
_next_box enableRopeAttach true;
|
||||
[_next_box, true] remoteExec ["enableRopeAttach"];
|
||||
} foreach ( attachedObjects _truck_to_unload);
|
||||
|
||||
sleep 0.5;
|
||||
|
|
|
@ -47,7 +47,7 @@ reverse _stored_crates;
|
|||
clearItemCargoGlobal _x;
|
||||
|
||||
_x setPos _unload_pos;
|
||||
[_x, true] remoteExec ["enableRopeAttach",_x];
|
||||
[_x, true] remoteExec ["enableRopeAttach"];
|
||||
_unloaded = true;
|
||||
};
|
||||
if (_unloaded) exitWith {
|
||||
|
|
|
@ -41,7 +41,7 @@ if (!isNil "_storage") then {
|
|||
if (_crates_count >= (count _storage_positions)) exitWith {if (!isDedicated) then {hint localize "STR_BOX_CANTSTORE";};};
|
||||
|
||||
_crate attachTo [_storage, [(_storage_positions select _crates_count) select 0, (_storage_positions select _crates_count) select 1, _height]];
|
||||
[_crate, false] remoteExec ["enableRopeAttach",_crate];
|
||||
[_crate, false] remoteExec ["enableRopeAttach"];
|
||||
|
||||
if (_update) then {
|
||||
if ((_storage getVariable ["KP_liberation_storage_type",-1]) == 1) then {
|
||||
|
|
Loading…
Reference in New Issue