Jump to content
  • 0

Since include doorManagement my Stronghold Unlock doesnt work


OnkelDom

Question

Hey Guys,

im working on my Private Server and since i have addet Zupas doorManagement script, i cant open a origins stronghold. Can you help me? Here is the door unlock script from this.
 

private ["_cursorTarget","_typeOfCursorTarget","_state","_action","_strongholdCode"];
_cursorTarget = (_this select 3 select 0);
_typeOfCursorTarget = (_this select 3 select 1);
_action = (_this select 3 select 2);
_strongholdCode = false;

if(_typeOfCursorTarget == "krepost") then {
    private["_combination","_ok"];
    _combination = _cursorTarget getVariable ["CharacterID","0"];    
    dayz_combination = "";
    _ok = createdialog "SafeKeyPad";
    waitUntil{!dialog};
    if(_combination == dayz_combination) then {
        _strongholdCode = true;
        OriginsLockUnlock = [_cursorTarget,_typeOfCursorTarget,_action,dayz_playerUID,dayz_combination];
    };
} else {
    OriginsLockUnlock = [_cursorTarget,_typeOfCursorTarget,_action,dayz_playerUID,"0"];
};
publicVariableServer "OriginsLockUnlock";

This works not with the inventory for player manage. Its the Hitpoints. I dont become an option when the Krepost is my cursor target.

 

Give it a way to implimentate the Krepost full to the doorManagement? 

 

Thanks a lot for your help.  ;)

 

Onkel

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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