mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 17:21:36 +03:00
added player helper functions
This commit is contained in:
1 parent
a3525b4ed6
commit
b184d535a5
4 files changed
+141
-3
No files matched your search
@@ -127,9 +127,22 @@ if (!isDedicated) then {
|
||||
onPreloadStarted "dayz_preloadFinished = false;";
|
||||
onPreloadFinished "dayz_preloadFinished = true;";
|
||||
|
||||
|
||||
|
||||
|
||||
// helper functions
|
||||
player_hasTools = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_hasTools.sqf";
|
||||
player_checkItems = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_checkItems.sqf";
|
||||
player_removeItems = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_removeItems.sqf";
|
||||
// combination of check and remove items
|
||||
player_checkAndRemoveItems = {
|
||||
private ["_items","_b"];
|
||||
_items = _this;
|
||||
_b = _items call player_checkItems;
|
||||
if (_b) then {
|
||||
_b = _items call player_removeItems;
|
||||
};
|
||||
_b
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
RunTime = 0;
|
||||
TotalRuns = 0;
|
||||
|
||||
Reference in new issue
Block a user