DayZ 1.8.0.3 handcuff player help

novaline

Well-Known Member
assuming you have a custom "fn_selfActions.sqf" called from "compiles.sqf":
in fn_selfactions add this block of code below _isVehicle = _cursorTarget isKindOf "AllVehicles";
Code:
_side = side _cursorTarget == west; //so only Players can be detained
_string = "PartGeneric" in magazines player;
then further down in fn_selfactions add this block of code above // CURSOR TARGET ALIVE
Code:
//--------------------------------------ARREST----------------------------------------------------------------
    if ((player getVariable"humanity") >= 9000) then {
        if(_isMan && !_isZombie && _canDo && _isAlive) then {
            if (s_player_arrest < 0) then {
                s_player_arrest = player addaction ['<t color="#0074E8">' + "Investigation Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""];
                };
        } else {
            player removeAction s_player_arrest;
            s_player_arrest = -1;
            };
    };
//-------------------------------------------------------------------------------------------------------------
Note the "9000", this is where you set at which amount of humanity the arrest will be available to your players, set it to whatever you like:
Code:
 if ((player getVariable"humanity") >= 9000) then {
also add this block of code further down in "fn_selfActions.sqf above //Others
Code:
//*****Arrest INKKO & Schwede*****
    player removeAction s_player_arrest;
    s_player_arrest = -1;
    player removeAction s_player_release;
    s_player_release = -1;
    player removeAction s_player_escort;
    s_player_escort = -1;
    player removeAction s_player_search;
    s_player_search = -1;
download my compilation of Graven, Inkko & Schwedes scripts into MPmissions\your mission\Scripts\Investigation (Note capital S in Scripts folder and capital I in Investigation folder)

rePBO your mission and youre good to go

you need 1 scrap metal in inventory to perform arrest, besides the amount of humanity you set up (default 9000)
 
Last edited:

novaline

Well-Known Member
Ha
That's one of the most IDGAF posts ever. Well played :D

They aren't listed anywhere in this thread now (edited out from page 4) is the only reason I brought it up.
Haha my intentions were sincere, about the BE exceptions I'm quite sure they're there somewhere.. I'll have to check when I get back home. Until then... Install script check BE kicks and adjust filters
 

sukkaed

Well-Known Member
Cool stuff guys. In detain.sqf you need to change removeMagazine part to
Code:
player removeMagazine "PartGeneric";
and while we have these
Code:
_side = side _cursorTarget == west; //so only Players can be detained
_string = "PartGeneric" in magazines player;
Should we actually use them in addaction?
Code:
 if(_isMan && !_isZombie && _canDo && _isAlive && _side && _string) then {
 
Last edited:
just tested this out works fine come across one problem though i told someone to detain me to check if the 10min timer releases me did still detained around 20-30mins has passed :)
 
also how would i make say people with -5000 & people with +5000 huimanity be able to do this rather then just people with 9k as an example on you post ofc i could change 9000 to 5000 but want - 5000 to be able to use it too bandit/hero only thanks again for this awsome script just wish there was a neon light script out there with tut on that searched forever for it :(
 
This looks freakin baws!. if there is a release/tutorial to install this to a dayz.st epoch 1.0.4.2 server can someone point me to it?.. If not i will await release but this looks so cool, i must have it lol.
 

LTGNick

Valued Member!
Is there any way to make it so bandits with -50,000 or more can only use it? cause i want to make it you have to either be a Hero or a really crazy bandit
 
Top