From 4dceeedfbb995e33497e5d60cc669811a4d31e21 Mon Sep 17 00:00:00 2001 From: via Date: Fri, 2 Dec 2022 11:55:55 +0000 Subject: [PATCH] Update 'In Game Admin Helpers' --- In-Game-Admin-Helpers.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/In-Game-Admin-Helpers.md b/In-Game-Admin-Helpers.md index e04e654..78d9232 100644 --- a/In-Game-Admin-Helpers.md +++ b/In-Game-Admin-Helpers.md @@ -17,4 +17,14 @@ Change to time x: ``` skipTime ((x - dayTime + 24) % 24); -``` \ No newline at end of file +``` + +# Get All Loadout Items +``` +AllPlayableUnitsItens = []; +{AllPlayableUnitsItens = AllPlayableUnitsItens + [(headgear _x)] + [(goggles _x)] + (assignedItems _x) + (backpackitems _x)+ [(backpack _x)] + (uniformItems _x) + [(uniform _x)] + (vestItems _x) + [(vest _x)] + (magazines _x) + (weapons _x) + (primaryWeaponItems _x)+ (primaryWeaponMagazine _x) + (handgunMagazine _x) + (handgunItems _x) + (secondaryWeaponItems _x) + (secondaryWeaponMagazine _x)} forEach (playableUnits + switchableUnits); +AllPlayableUnitsItens = AllPlayableUnitsItens select {count _x > 0}; +AllPlayableUnitsItens = AllPlayableUnitsItens arrayIntersect AllPlayableUnitsItens; +copyToClipboard str AllPlayableUnitsItens; +``` +Todo: Update script for avoiding TFAR problems if it is loaded \ No newline at end of file