Fixing hide object global call - must execute on server

This commit is contained in:
sethduda 2016-03-10 17:03:32 -05:00
parent b407e1237e
commit 59f777465d
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -165,8 +165,8 @@ SA_Attach_Tow_Ropes = {
[_vehicle,_player] call SA_Drop_Tow_Ropes;
_helper = "Land_Can_V2_F" createVehicle position _cargo;
_helper attachTo [_cargo, _cargoHitch];
hideObjectGlobal _helper;
hideObject _helper;
_helper remoteExec ["hideObjectGlobal",2];
[_helper, [0,0,0], [0,0,-1]] ropeAttachTo (_towRopes select 0);
[_vehicle,_vehicleHitch,_cargo,_cargoHitch,_ropeLength] spawn SA_Simulate_Towing;
};
@ -227,8 +227,8 @@ SA_Pickup_Tow_Ropes = {
[_helper, [0, 0, 0], [0,0,-1]] ropeAttachTo _x;
_helper attachTo [_player, [-0.1, 0.1, 0.15], "Pelvis"];
} forEach (_vehicle getVariable ["SA_Tow_Ropes",[]]);
hideObjectGlobal _helper;
hideObject _helper;
_helper remoteExec ["hideObjectGlobal",2];
_player setVariable ["SA_Tow_Ropes_Vehicle", _vehicle,true];
_player setVariable ["SA_Tow_Ropes_Pick_Up_Helper", _helper,true];
} else {