Jump to content
  • 0

no tow locked vehicles


redrum.fk

Question

  Followed the no tow locked veh script but seems i can still towed locked vehicles. It works if i unlock then lock it then it becomes untowable but on restart everything is towable kinda weird do not understand what i may be doing wrong. Only thing i can think is from 1.0.4.2 to 1.0.5.1 something has changed cause i kept my script the same. Any ideas or anyone have a dif no tow locked veh script ??

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

What towing script are you using ???

 

r3f ???

 

is you use r3f then I think this is all I did in 

 

local_lockUnlock.sqf

private ["_vehicle","_status"];
_vehicle = _this select 0;
_status = _this select 1;


if (local _vehicle) then {
if(_status) then {
_vehicle setVehicleLock "LOCKED";
 _vehicle setVariable ["R3F_LOG_disabled",true,true];
_vehicle allowDamage false;
_vehicle enableSimulation true;
} else {
_vehicle setVehicleLock "UNLOCKED";
_vehicle setVariable ["R3F_LOG_disabled",false,true];
_vehicle allowDamage true;
        _vehicle enableSimulation true;
};
};
I also added _vehicle allowDamage false; and _vehicle allowDamage true;
to make locked vehicle indestructable
 
this makes if locked then R3F_LOG_disabled true
if unlocked then R3F_LOG_disabled false
 
I now use logistic towing instead of R3F
Link to comment
Share on other sites

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...