Change to enableRopeAttach

This commit is contained in:
Christian 2017-10-12 09:39:42 +02:00
parent c7203358b0
commit eeeb863caf
4 changed files with 4 additions and 4 deletions

View File

@ -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";

View File

@ -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;

View File

@ -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 {

View File

@ -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 {