Jump to content

lift and tow for 1.0.6.2


l1nkrx7

Recommended Posts

btc logistics https://epochmod.com/forum/topic/3963-btc_logistic-dayz-epoch-version/

mf tow https://epochmod.com/forum/topic/10673-mf-tow-a-towing-script-for-dayz-epoch-mod/

 

both these working on epoch 1.0.6.2 i minor set back was placing the fix for disable lift/tow for locked vehicles this has to be applied in infistar it seems to hijack the local_lockUnlock.sqf

 

these were the fixes in ah.sqf

				if(_object isKindOf "Bicycle")then
				{
					_object setVehicleLock "UNLOCKED";
					_object setVariable ["MF_Tow_Cannot_Tow",false,true];
					_object setVariable ["BTC_Cannot_Lift",false,true];
				};

and

	fn_infiSTAR_local_lockUnlock = {
		private ["_vehicle","_status","_lock","_locktrue",'_log'];
		_vehicle = _this select 0;
		_status = _this select 1;
		_lock = if(_status)then{"LOCKED"}else{"UNLOCKED"};
		_locktrue if(_status)then{"true"}else{"false"};
		
		if(local _vehicle)then
		{
			_vehicle setVehicleLock _lock;
			_vehicle setVariable ["MF_Tow_Cannot_Tow",_locktrue,true];
			_vehicle setVariable ["BTC_Cannot_Lift",_locktrue,true];
			
			if(isServer)then
			{
				_log = format["%1 (objid: %5) %2 @%3 %4", typeOf _vehicle, _lock, mapGridPosition _vehicle, getPosATL _vehicle,_vehicle getvariable["ObjectID","0"]];
				["LockUnlockVehicle",_log] call fn_custom_log;
			}
			else
			{
				PVAHR_0_INFI_LOCAL_LOCKUNLOCK = [_vehicle,_lock,player];
				publicVariableServer "PVAHR_0_INFI_LOCAL_LOCKUNLOCK";
			};
		};
	};
	publicVariable "fn_infiSTAR_local_lockUnlock";
	local_lockUnlock = fn_infiSTAR_local_lockUnlock;

 

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...