SolvedI have the script code, now how do I actually use it?

Posts 1–3 of 3 · Page 1 of 1
I have the script code, now how do I actually use it?
So I stumbled upon some code to let me open locked vehicles on epoch.

Here is the code:
Code:
                _ct = cursorTarget;
		if (!isNull _ct) then
		{
			_obj = vehicle player;
			if ((_ct isKindOf "AllVehicles") && (locked _ct)) then {_ct lock false;};
			if ((_obj != player) && (_obj isKindOf "AllVehicles") && (locked _obj)) then {_obj lock false;};
			{
				_ct animate [_x,1];
			} forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
		};
I tried just putting it into an sqf file and executing it with cheat engine, but that didn't appear to work. Any help would be appreciated!
That script will no longer work. They changed the lock/unlock in 1.0.3.1. Use this instead:

Code:
_ct = cursorTarget;
		if (!isNull _ct) then
		{
			if (_ct isKindOf "AllVehicles") then {[nil,nil,nil,_ct] execVM "\z\addons\dayz_code\actions\lock_veh.sqf";};
			{_ct animate [_x,0];} forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
		};
Thanks for the quick response.

/Solved
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us