Update 'In Game Admin Helpers'

via 2022-12-02 11:55:55 +00:00
parent 358d45c9ca
commit 4dceeedfbb
1 changed files with 11 additions and 1 deletions

@ -18,3 +18,13 @@ Change to time x:
```
skipTime ((x - dayTime + 24) % 24);
```
# 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