mirror of
https://github.com/sethduda/AdvancedTowing.git
synced 2024-08-30 17:32:12 +00:00
Fixing hide object global call - must execute on server
This commit is contained in:
parent
b407e1237e
commit
59f777465d
Binary file not shown.
Binary file not shown.
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user