Jump to content
  • 0

DayZ Epoch Handcuff a player?


Oblicure

Question

2 answers to this question

Recommended Posts

  • 0

here is the investigation folder 

Investigation

it has detain, escort, search and release

I had mine located in  Custom\Scripts folders  so if your is different then change the paths accordingly

and add this into selfactions

Spoiler

//----------------Detain--------------------------------------------------------------------------
//Player Detain, Search, Release
    if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then {
        if (s_player_investo < 0) then {
            s_player_investo = player addAction [("<t color='#ffa500'>")+("Detain")+("</t>"), "Custom\Scripts\investigation\Detain.sqf",cursorTarget, 5, false, true, "",""];
        };
        if (s_player_investoTwo < 0) then {
            s_player_investoTwo = player addAction [("<t color='#ffa500'>")+("Search")+("</t>"), "Custom\Scripts\investigation\Search.sqf",cursorTarget, 5, false, true, "",""];
        };
        if (s_player_investoThree < 0) then {
            s_player_investoThree = player addAction [("<t color='#ffa500'>")+("Escort")+("</t>"), "Custom\Scripts\investigation\Escort.sqf",cursorTarget, 5, false, true, "",""];
        };
        if (s_player_investoFour < 0) then {
            s_player_investoFour = player addAction [("<t color='#ffa500'>")+("Release")+("</t>"), "Custom\Scripts\investigation\Release.sqf",cursorTarget, 5, false, true, "",""];
        };
    } else {
        player removeAction s_player_investo;
        s_player_investo = -1;
        player removeAction s_player_investoTwo;
        s_player_investoTwo = -1;
        player removeAction s_player_investoThree;
        s_player_investoThree = -1;
        player removeAction s_player_investoFour;
        s_player_investoFour = -1;
    };
//------------------------------------------------------------------------------------------------

 

 

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