mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 23:50:48 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
13
SQF/dayz_code/compile/player_dumpBackpack.sqf
Normal file
13
SQF/dayz_code/compile/player_dumpBackpack.sqf
Normal file
@@ -0,0 +1,13 @@
|
||||
private ["_weapons","_magazines","_weaponscnt","_magazinescnt","_backpack"];
|
||||
_backpack = nearestObject [player, "Bag_Base_EP1"];
|
||||
if (!(isNull _backpack) and local _backpack) then {
|
||||
_weapons = getWeaponCargo _backpack;
|
||||
_magazines = getMagazineCargo _backpack;
|
||||
_weaponscnt = count (_weapons select 0);
|
||||
_magazinescnt = count (_magazines select 0);
|
||||
if((_magazinescnt > 0) or (_weaponscnt > 0)) then {
|
||||
// hide backpack from everyone else
|
||||
dayzHideObject = _backpack;
|
||||
publicVariable "dayzHideObject";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user