{"action":"created","issue":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/1270","repository_url":"https://api.github.com/repos/CBATeam/CBA_A3","labels_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/1270/comments","events_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/1270/events","html_url":"https://github.com/CBATeam/CBA_A3/pull/1270","id":541362413,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU2MDI1NDg3","number":1270,"title":"Filtered Loadouts","user":{"login":"synixebrett","id":3946739,"node_id":"MDQ6VXNlcjM5NDY3Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/3946739?v=4","gravatar_id":"","url":"https://api.github.com/users/synixebrett","html_url":"https://github.com/synixebrett","followers_url":"https://api.github.com/users/synixebrett/followers","following_url":"https://api.github.com/users/synixebrett/following{/other_user}","gists_url":"https://api.github.com/users/synixebrett/gists{/gist_id}","starred_url":"https://api.github.com/users/synixebrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synixebrett/subscriptions","organizations_url":"https://api.github.com/users/synixebrett/orgs","repos_url":"https://api.github.com/users/synixebrett/repos","events_url":"https://api.github.com/users/synixebrett/events{/privacy}","received_events_url":"https://api.github.com/users/synixebrett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-12-21T19:35:43Z","updated_at":"2020-01-03T09:33:32Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/pulls/1270","html_url":"https://github.com/CBATeam/CBA_A3/pull/1270","diff_url":"https://github.com/CBATeam/CBA_A3/pull/1270.diff","patch_url":"https://github.com/CBATeam/CBA_A3/pull/1270.patch"},"body":"**When merged this pull request will:**\r\n- Alternate to #1238 \r\n- Close #1236\r\n- `CBA_fnc_getUnitLoadout`\r\n- `CBA_fnc_filterLoadout`\r\n- `CBA_fnc_addLoadoutFilter`\r\n- `CBA_fnc_removeLoadoutFilter`\r\n\r\n```sqf\r\nprivate _loadout = [player] call CBA_fnc_getUnitLoadout; // Loadout with ItemRadio\r\n\r\nprivate _handle = [{ \r\n    params [\"_loadout\", \"_handle\"]; \r\n    if ((_loadout select 9) select 2 == \"ItemRadio\") then { \r\n        (_loadout select 9) set [2, \"\"]; \r\n    }; \r\n    _loadout\r\n}] call CBA_fnc_addLoadoutFilter;\r\n\r\n_loadout = [_loadout] call CBA_fnc_filterLoadout; // Previous loadout with ItemRadio removed\r\n_loadout = [player] call CBA_fnc_getUnitLoadout; // Loadout without ItemRadio\r\n\r\n[_handle] call CBA_fnc_removeLoadoutFilter;\r\n\r\n_loadout = [player] call CBA_fnc_getUnitLoadout; // Loadout with ItemRadio\r\n```"},"comment":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/comments/570517332","html_url":"https://github.com/CBATeam/CBA_A3/pull/1270#issuecomment-570517332","issue_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/1270","id":570517332,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDUxNzMzMg==","user":{"login":"commy2","id":6576312,"node_id":"MDQ6VXNlcjY1NzYzMTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6576312?v=4","gravatar_id":"","url":"https://api.github.com/users/commy2","html_url":"https://github.com/commy2","followers_url":"https://api.github.com/users/commy2/followers","following_url":"https://api.github.com/users/commy2/following{/other_user}","gists_url":"https://api.github.com/users/commy2/gists{/gist_id}","starred_url":"https://api.github.com/users/commy2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commy2/subscriptions","organizations_url":"https://api.github.com/users/commy2/orgs","repos_url":"https://api.github.com/users/commy2/repos","events_url":"https://api.github.com/users/commy2/events{/privacy}","received_events_url":"https://api.github.com/users/commy2/received_events","type":"User","site_admin":false},"created_at":"2020-01-03T09:33:32Z","updated_at":"2020-01-03T09:33:32Z","author_association":"CONTRIBUTOR","body":"505 according to MS Word."}}
{"actor":{"display_login":"commy2"}}