Jump to content
  • 1

WeaponHolder + ItemSafe


Demellion

Question

Hi there.

Found a bug that allows to access ItemSafe inventory if you place some WeaponHolder close it, even if its locked.

Just a suggestion

 

private ["_nearcondition","_display"];
disableSerialization;
_nearcondition = nil;
_display = nil;

while {true} do
{
  _near = (position player) nearEntities ["ItemSafe",5];
  _nearcondition = {_x getVariable ["EPOCH_Locked",false]} forEach _near; 
  _display = (findDisplay 46);
  sleep 0.5;

  while {true in _nearcondition} do 
 {  
    _display closeDisplay 1;
    systemChat "You cannot do this near locked safe";
    // or some function like END_MISSION
 }; 
};

P.S not sure if 46 is inventory.

Edited by Demellion
code update
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
  • Discord

×
×
  • Create New...