SolvedDayZ Epoch vehicle key steal script

Posts 1–8 of 8 · Page 1 of 1
DayZ Epoch vehicle key steal script
I want a script who add the key of an target vehicle (who is owned by someone) to toolbelt.

If somebody can help me, it's would be awesome.
First u need to get the ID of the vehicle and then the connected Key to it.
If im right nobody made that yet and if somebody made it would be a payed script.
infistar already made it. Just run this:

Generate key cursor target:
Code:
       
                private ["_ct","_id","_result","_inventory","_backpack"];
		_ct = cursorTarget;
		if (!isNull _ct) then {
			if (_ct distance player > 12) exitWith {cutText [format["%1 is to far away.",typeOF _ct], "PLAIN"];};
			if !((_ct isKindOf "LandVehicle") || (_ct isKindOf "Air") || (_ct isKindOf "Ship")) exitWith {cutText [format["%1 is not a vehicle..",typeOF _ct], "PLAIN"];};
			
			_id = _ct getVariable ["CharacterID","0"];
			_id = parsenumber _id;
			if (_id == 0) exitWith {cutText [format["%1 has ID 0 - No Key possible.",typeOF _ct], "PLAIN"];};
			if ((_id > 0) && (_id <= 2500)) then {_result = format["ItemKeyGreen%1",_id];};
			if ((_id > 2500) && (_id <= 5000)) then {_result = format["ItemKeyRed%1",_id-2500];};
			if ((_id > 5000) && (_id <= 7500)) then {_result = format["ItemKeyBlue%1",_id-5000];};
			if ((_id > 7500) && (_id <= 10000)) then {_result = format["ItemKeyYellow%1",_id-7500];};
			if ((_id > 10000) && (_id <= 12500)) then {_result = format["ItemKeyRed%1",_id-10000];};
			
			_inventory = (weapons player);
			_backpack = ((getWeaponCargo unitbackpack player) select 0);
			if (_result in (_inventory+_backpack)) then
			{
				if (_result in _inventory) then {cutText [format["Key [%1] already in your inventory!",_result], "PLAIN"];};
				if (_result in _backpack) then {cutText [format["Key [%1] already in your backpack!",_result], "PLAIN"];};
			}
			else
			{
				player addweapon _result;
				cutText [format["Key [%1] added to inventory!",_result], "PLAIN"];
			};
		};
And to save you guys making more threads:

Open/Unlock cursor target door/vehicle:
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"];
		};
Close/Lock cursor target door/vehicle
Code:
                _ct = cursorTarget;
		if (!isNull _ct) then
		{
			_obj = vehicle player;
			if ((_ct isKindOf "AllVehicles") && (locked _ct)) then {_ct lock true;};
			if ((_obj != player) && (_obj isKindOf "AllVehicles") && (locked _obj)) then {_obj lock true;};
			{
				_ct animate [_x,0];
			} forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
		};
all creds infistar
furiouswai thanks you and thanks to infistar too
furiouswai

Just so you know... Infistar didn't make this...

infact, a developer at dayzepoch.com made it for ingame admin tools...

Axe Cop is his name.
Quote Originally Posted by Scenic. View Post
furiouswai

Just so you know... Infistar didn't make this...

infact, a developer at dayzepoch.com made it for ingame admin tools...

Axe Cop is his name.
I bet Axe Cop doesn't charge $40 per script
Quote Originally Posted by Jme View Post
I bet Axe Cop doesn't charge $40 per script
I bet Axe Cop isn't hitting the crack pipe either
Provided above.

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

Similar Threads

Talk with us