mirror of
https://github.com/sethduda/AdvancedTowing.git
synced 2024-08-30 17:32:12 +00:00
Adding fix for MP servers to change cargo owner
This commit is contained in:
parent
01f2bc857a
commit
b407e1237e
Binary file not shown.
Binary file not shown.
@ -26,6 +26,10 @@ SA_Simulate_Towing = {
|
|||||||
private ["_vehicleHitchPosition","_cargoHitchPosition","_newCargoHitchPosition","_cargoVector","_movedCargoVector","_attachedObjects"];
|
private ["_vehicleHitchPosition","_cargoHitchPosition","_newCargoHitchPosition","_cargoVector","_movedCargoVector","_attachedObjects"];
|
||||||
private ["_newCargoDir","_lastCargoVectorDir","_newCargoPosition","_doExit","_cargoPosition","_vehiclePosition","_maxVehicleSpeed","_vehicleMass","_cargoMass"];
|
private ["_newCargoDir","_lastCargoVectorDir","_newCargoPosition","_doExit","_cargoPosition","_vehiclePosition","_maxVehicleSpeed","_vehicleMass","_cargoMass"];
|
||||||
|
|
||||||
|
if(local _vehicle && !local _cargo) then {
|
||||||
|
[_cargo, clientOwner] remoteExec ["setOwner", 2];
|
||||||
|
};
|
||||||
|
|
||||||
_vehicleHitchModelPos set [2,0];
|
_vehicleHitchModelPos set [2,0];
|
||||||
_cargoHitchModelPos set [2,0];
|
_cargoHitchModelPos set [2,0];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user