{"action":"created","comment":{"url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/comments/80953285","pull_request_review_id":1969836,"id":80953285,"diff_hunk":"@@ -33,58 +29,11 @@ if (isNil \"acre_api_fnc_ignoreAntennaDirection\") then {\n \n         [] call FUNC(initializeRadios);\n \n-\n         if (!hasInterface) exitWith {\n             GVAR(initState) = 999;\n             INFO_2(\"%1 - [InitState %2] DONE (Non Interface)\", diag_frameNo, GVAR(initState));\n         };\n-\n-        [\n-        {\n-            if (isNull player) exitWith {false};\n-\n-            private _return = false;\n-\n-            if (GVAR(initState) == 1) then {\n-                INFO_2(\"%1 - [InitState %2] Setting player presets\", diag_frameNo, GVAR(initState));\n-                private _groupLanguages = (group player) getVariable [QGVAR(assignedLanguages),[]];\n-                GVAR(playerLanguages) = player getVariable [QGVAR(assignedLanguages), _groupLanguages];\n-\n-                TRACE_1(\"\",playerSide);\n-                private _presetArray = switch (playerSide) do {\n-                case west: { [WEST_SR, WEST_MR, WEST_LR, GVAR(westDefaultLanguages)] };\n-                case east: { [EAST_SR, EAST_MR, EAST_LR, GVAR(eastDefaultLanguages)] };\n-                case independent: { [INDY_SR, INDY_MR, INDY_LR, GVAR(indyDefaultLanguages)] };\n-                    default { [CIV_SR, CIV_MR, CIV_LR, GVAR(civDefaultLanguages)] }; // should just be civs\n-                };\n-\n-                _presetArray params [\"_sr\", \"_mr\", \"_lr\", \"_babel\"];\n-                INFO_4(\"radio info [SR:%1 MR:%2 LR:%3 BAB:%4]\", _sr, _mr, _lr, _babel);\n-\n-                GVAR(sideLanguages) = _babel;\n-\n-                [RADIO_SR, _sr] call ACRE_FUNC(setPreset);\n-                [RADIO_MR, _mr] call ACRE_FUNC(setPreset);\n-                [RADIO_LR, _lr] call ACRE_FUNC(setPreset);\n-                GVAR(initState) = 2;\n-            };\n-            if (GVAR(initState) == 2) then {\n-                if (!(player getVariable [QEGVAR(assignGear,gearSetup), false])) exitWith {};\n-                INFO_2(\"%1 - [InitState %2] Setting briefing\", diag_frameNo, GVAR(initState));\n-                [] call FUNC(addAcreBriefing);\n-                GVAR(initState) = 3;\n-            };\n-            if (GVAR(initState) == 3) then {\n-                if (!([player] call ACRE_FUNC(isInitialized))) exitWith {};\n-                INFO_2(\"%1 - [InitState %2] Setting Channels\", diag_frameNo, GVAR(initState));\n-                [] call FUNC(configureRadios);\n-                GVAR(initState) = 4;\n-                _return = true;\n-            };\n-            _return\n-        },\n-        {\n-            INFO_2(\"%1 - [InitState %2] DONE\", diag_frameNo, GVAR(initState));\n-        }, []] call CBA_fnc_waitUntilAndExecute;\n+        \n+        [\"unit\", {_this call FUNC(setupPlayer)}, true] call CBA_fnc_addPlayerEventHandler; ","path":"addons/radios/XEH_postInit.sqf","position":79,"original_position":79,"commit_id":"ff0f4e10fef3c3a622073552cf4b77747aab1f2c","original_commit_id":"ff0f4e10fef3c3a622073552cf4b77747aab1f2c","user":{"login":"AACO","id":13401013,"avatar_url":"https://avatars.githubusercontent.com/u/13401013?v=3","gravatar_id":"","url":"https://api.github.com/users/AACO","html_url":"https://github.com/AACO","followers_url":"https://api.github.com/users/AACO/followers","following_url":"https://api.github.com/users/AACO/following{/other_user}","gists_url":"https://api.github.com/users/AACO/gists{/gist_id}","starred_url":"https://api.github.com/users/AACO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AACO/subscriptions","organizations_url":"https://api.github.com/users/AACO/orgs","repos_url":"https://api.github.com/users/AACO/repos","events_url":"https://api.github.com/users/AACO/events{/privacy}","received_events_url":"https://api.github.com/users/AACO/received_events","type":"User","site_admin":false},"body":"As long as that event gets triggered along the normal spawn/jip path 👍 ","created_at":"2016-09-28T16:00:26Z","updated_at":"2016-09-28T16:00:26Z","html_url":"https://github.com/BourbonWarfare/POTATO/pull/91#discussion_r80953285","pull_request_url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/comments/80953285"},"html":{"href":"https://github.com/BourbonWarfare/POTATO/pull/91#discussion_r80953285"},"pull_request":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91","id":87014497,"html_url":"https://github.com/BourbonWarfare/POTATO/pull/91","diff_url":"https://github.com/BourbonWarfare/POTATO/pull/91.diff","patch_url":"https://github.com/BourbonWarfare/POTATO/pull/91.patch","issue_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/91","number":91,"state":"open","locked":false,"title":"Respawn / Zeus support for radios","user":{"login":"PabstMirror","id":9376747,"avatar_url":"https://avatars.githubusercontent.com/u/9376747?v=3","gravatar_id":"","url":"https://api.github.com/users/PabstMirror","html_url":"https://github.com/PabstMirror","followers_url":"https://api.github.com/users/PabstMirror/followers","following_url":"https://api.github.com/users/PabstMirror/following{/other_user}","gists_url":"https://api.github.com/users/PabstMirror/gists{/gist_id}","starred_url":"https://api.github.com/users/PabstMirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PabstMirror/subscriptions","organizations_url":"https://api.github.com/users/PabstMirror/orgs","repos_url":"https://api.github.com/users/PabstMirror/repos","events_url":"https://api.github.com/users/PabstMirror/events{/privacy}","received_events_url":"https://api.github.com/users/PabstMirror/received_events","type":"User","site_admin":false},"body":"Adds support for `ace_player` so `FUNC(setupPlayer)` will rerun on each change\r\n\r\nRespawns, including side change respawns, should work\r\nAs well as zeus RCing units.","created_at":"2016-09-27T21:20:44Z","updated_at":"2016-09-28T16:00:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"747cc3e97104d007ac645dc55f414b695bca1fe5","assignee":{"login":"AACO","id":13401013,"avatar_url":"https://avatars.githubusercontent.com/u/13401013?v=3","gravatar_id":"","url":"https://api.github.com/users/AACO","html_url":"https://github.com/AACO","followers_url":"https://api.github.com/users/AACO/followers","following_url":"https://api.github.com/users/AACO/following{/other_user}","gists_url":"https://api.github.com/users/AACO/gists{/gist_id}","starred_url":"https://api.github.com/users/AACO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AACO/subscriptions","organizations_url":"https://api.github.com/users/AACO/orgs","repos_url":"https://api.github.com/users/AACO/repos","events_url":"https://api.github.com/users/AACO/events{/privacy}","received_events_url":"https://api.github.com/users/AACO/received_events","type":"User","site_admin":false},"assignees":[{"login":"AACO","id":13401013,"avatar_url":"https://avatars.githubusercontent.com/u/13401013?v=3","gravatar_id":"","url":"https://api.github.com/users/AACO","html_url":"https://github.com/AACO","followers_url":"https://api.github.com/users/AACO/followers","following_url":"https://api.github.com/users/AACO/following{/other_user}","gists_url":"https://api.github.com/users/AACO/gists{/gist_id}","starred_url":"https://api.github.com/users/AACO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AACO/subscriptions","organizations_url":"https://api.github.com/users/AACO/orgs","repos_url":"https://api.github.com/users/AACO/repos","events_url":"https://api.github.com/users/AACO/events{/privacy}","received_events_url":"https://api.github.com/users/AACO/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/BourbonWarfare/POTATO/milestones/13","html_url":"https://github.com/BourbonWarfare/POTATO/milestones/1.0.16","labels_url":"https://api.github.com/repos/BourbonWarfare/POTATO/milestones/13/labels","id":2027380,"number":13,"title":"1.0.16","description":"","creator":{"login":"AACO","id":13401013,"avatar_url":"https://avatars.githubusercontent.com/u/13401013?v=3","gravatar_id":"","url":"https://api.github.com/users/AACO","html_url":"https://github.com/AACO","followers_url":"https://api.github.com/users/AACO/followers","following_url":"https://api.github.com/users/AACO/following{/other_user}","gists_url":"https://api.github.com/users/AACO/gists{/gist_id}","starred_url":"https://api.github.com/users/AACO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AACO/subscriptions","organizations_url":"https://api.github.com/users/AACO/orgs","repos_url":"https://api.github.com/users/AACO/repos","events_url":"https://api.github.com/users/AACO/events{/privacy}","received_events_url":"https://api.github.com/users/AACO/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2016-09-25T23:22:15Z","updated_at":"2016-09-27T21:20:44Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91/commits","review_comments_url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91/comments","review_comment_url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/91/comments","statuses_url":"https://api.github.com/repos/BourbonWarfare/POTATO/statuses/ff0f4e10fef3c3a622073552cf4b77747aab1f2c","head":{"label":"BourbonWarfare:radiosRespawnZeus","ref":"radiosRespawnZeus","sha":"ff0f4e10fef3c3a622073552cf4b77747aab1f2c","user":{"login":"BourbonWarfare","id":16518830,"avatar_url":"https://avatars.githubusercontent.com/u/16518830?v=3","gravatar_id":"","url":"https://api.github.com/users/BourbonWarfare","html_url":"https://github.com/BourbonWarfare","followers_url":"https://api.github.com/users/BourbonWarfare/followers","following_url":"https://api.github.com/users/BourbonWarfare/following{/other_user}","gists_url":"https://api.github.com/users/BourbonWarfare/gists{/gist_id}","starred_url":"https://api.github.com/users/BourbonWarfare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BourbonWarfare/subscriptions","organizations_url":"https://api.github.com/users/BourbonWarfare/orgs","repos_url":"https://api.github.com/users/BourbonWarfare/repos","events_url":"https://api.github.com/users/BourbonWarfare/events{/privacy}","received_events_url":"https://api.github.com/users/BourbonWarfare/received_events","type":"Organization","site_admin":false},"repo":{"id":49991770,"name":"POTATO","full_name":"BourbonWarfare/POTATO","owner":{"login":"BourbonWarfare","id":16518830,"avatar_url":"https://avatars.githubusercontent.com/u/16518830?v=3","gravatar_id":"","url":"https://api.github.com/users/BourbonWarfare","html_url":"https://github.com/BourbonWarfare","followers_url":"https://api.github.com/users/BourbonWarfare/followers","following_url":"https://api.github.com/users/BourbonWarfare/following{/other_user}","gists_url":"https://api.github.com/users/BourbonWarfare/gists{/gist_id}","starred_url":"https://api.github.com/users/BourbonWarfare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BourbonWarfare/subscriptions","organizations_url":"https://api.github.com/users/BourbonWarfare/orgs","repos_url":"https://api.github.com/users/BourbonWarfare/repos","events_url":"https://api.github.com/users/BourbonWarfare/events{/privacy}","received_events_url":"https://api.github.com/users/BourbonWarfare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BourbonWarfare/POTATO","description":"","fork":false,"url":"https://api.github.com/repos/BourbonWarfare/POTATO","forks_url":"https://api.github.com/repos/BourbonWarfare/POTATO/forks","keys_url":"https://api.github.com/repos/BourbonWarfare/POTATO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BourbonWarfare/POTATO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BourbonWarfare/POTATO/teams","hooks_url":"https://api.github.com/repos/BourbonWarfare/POTATO/hooks","issue_events_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/events{/number}","events_url":"https://api.github.com/repos/BourbonWarfare/POTATO/events","assignees_url":"https://api.github.com/repos/BourbonWarfare/POTATO/assignees{/user}","branches_url":"https://api.github.com/repos/BourbonWarfare/POTATO/branches{/branch}","tags_url":"https://api.github.com/repos/BourbonWarfare/POTATO/tags","blobs_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/refs{/sha}","trees_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BourbonWarfare/POTATO/statuses/{sha}","languages_url":"https://api.github.com/repos/BourbonWarfare/POTATO/languages","stargazers_url":"https://api.github.com/repos/BourbonWarfare/POTATO/stargazers","contributors_url":"https://api.github.com/repos/BourbonWarfare/POTATO/contributors","subscribers_url":"https://api.github.com/repos/BourbonWarfare/POTATO/subscribers","subscription_url":"https://api.github.com/repos/BourbonWarfare/POTATO/subscription","commits_url":"https://api.github.com/repos/BourbonWarfare/POTATO/commits{/sha}","git_commits_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/commits{/sha}","comments_url":"https://api.github.com/repos/BourbonWarfare/POTATO/comments{/number}","issue_comment_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/comments{/number}","contents_url":"https://api.github.com/repos/BourbonWarfare/POTATO/contents/{+path}","compare_url":"https://api.github.com/repos/BourbonWarfare/POTATO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BourbonWarfare/POTATO/merges","archive_url":"https://api.github.com/repos/BourbonWarfare/POTATO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BourbonWarfare/POTATO/downloads","issues_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues{/number}","pulls_url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls{/number}","milestones_url":"https://api.github.com/repos/BourbonWarfare/POTATO/milestones{/number}","notifications_url":"https://api.github.com/repos/BourbonWarfare/POTATO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BourbonWarfare/POTATO/labels{/name}","releases_url":"https://api.github.com/repos/BourbonWarfare/POTATO/releases{/id}","deployments_url":"https://api.github.com/repos/BourbonWarfare/POTATO/deployments","created_at":"2016-01-19T23:58:07Z","updated_at":"2016-07-11T21:29:34Z","pushed_at":"2016-09-27T21:20:44Z","git_url":"git://github.com/BourbonWarfare/POTATO.git","ssh_url":"git@github.com:BourbonWarfare/POTATO.git","clone_url":"https://github.com/BourbonWarfare/POTATO.git","svn_url":"https://github.com/BourbonWarfare/POTATO","homepage":null,"size":1741,"stargazers_count":4,"watchers_count":4,"language":"SQF","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":4,"default_branch":"master"}},"base":{"label":"BourbonWarfare:master","ref":"master","sha":"327ff7ec630e96c905c59a6cc341b78af41bbd26","user":{"login":"BourbonWarfare","id":16518830,"avatar_url":"https://avatars.githubusercontent.com/u/16518830?v=3","gravatar_id":"","url":"https://api.github.com/users/BourbonWarfare","html_url":"https://github.com/BourbonWarfare","followers_url":"https://api.github.com/users/BourbonWarfare/followers","following_url":"https://api.github.com/users/BourbonWarfare/following{/other_user}","gists_url":"https://api.github.com/users/BourbonWarfare/gists{/gist_id}","starred_url":"https://api.github.com/users/BourbonWarfare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BourbonWarfare/subscriptions","organizations_url":"https://api.github.com/users/BourbonWarfare/orgs","repos_url":"https://api.github.com/users/BourbonWarfare/repos","events_url":"https://api.github.com/users/BourbonWarfare/events{/privacy}","received_events_url":"https://api.github.com/users/BourbonWarfare/received_events","type":"Organization","site_admin":false},"repo":{"id":49991770,"name":"POTATO","full_name":"BourbonWarfare/POTATO","owner":{"login":"BourbonWarfare","id":16518830,"avatar_url":"https://avatars.githubusercontent.com/u/16518830?v=3","gravatar_id":"","url":"https://api.github.com/users/BourbonWarfare","html_url":"https://github.com/BourbonWarfare","followers_url":"https://api.github.com/users/BourbonWarfare/followers","following_url":"https://api.github.com/users/BourbonWarfare/following{/other_user}","gists_url":"https://api.github.com/users/BourbonWarfare/gists{/gist_id}","starred_url":"https://api.github.com/users/BourbonWarfare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BourbonWarfare/subscriptions","organizations_url":"https://api.github.com/users/BourbonWarfare/orgs","repos_url":"https://api.github.com/users/BourbonWarfare/repos","events_url":"https://api.github.com/users/BourbonWarfare/events{/privacy}","received_events_url":"https://api.github.com/users/BourbonWarfare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BourbonWarfare/POTATO","description":"","fork":false,"url":"https://api.github.com/repos/BourbonWarfare/POTATO","forks_url":"https://api.github.com/repos/BourbonWarfare/POTATO/forks","keys_url":"https://api.github.com/repos/BourbonWarfare/POTATO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BourbonWarfare/POTATO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BourbonWarfare/POTATO/teams","hooks_url":"https://api.github.com/repos/BourbonWarfare/POTATO/hooks","issue_events_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/events{/number}","events_url":"https://api.github.com/repos/BourbonWarfare/POTATO/events","assignees_url":"https://api.github.com/repos/BourbonWarfare/POTATO/assignees{/user}","branches_url":"https://api.github.com/repos/BourbonWarfare/POTATO/branches{/branch}","tags_url":"https://api.github.com/repos/BourbonWarfare/POTATO/tags","blobs_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/refs{/sha}","trees_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BourbonWarfare/POTATO/statuses/{sha}","languages_url":"https://api.github.com/repos/BourbonWarfare/POTATO/languages","stargazers_url":"https://api.github.com/repos/BourbonWarfare/POTATO/stargazers","contributors_url":"https://api.github.com/repos/BourbonWarfare/POTATO/contributors","subscribers_url":"https://api.github.com/repos/BourbonWarfare/POTATO/subscribers","subscription_url":"https://api.github.com/repos/BourbonWarfare/POTATO/subscription","commits_url":"https://api.github.com/repos/BourbonWarfare/POTATO/commits{/sha}","git_commits_url":"https://api.github.com/repos/BourbonWarfare/POTATO/git/commits{/sha}","comments_url":"https://api.github.com/repos/BourbonWarfare/POTATO/comments{/number}","issue_comment_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/comments{/number}","contents_url":"https://api.github.com/repos/BourbonWarfare/POTATO/contents/{+path}","compare_url":"https://api.github.com/repos/BourbonWarfare/POTATO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BourbonWarfare/POTATO/merges","archive_url":"https://api.github.com/repos/BourbonWarfare/POTATO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BourbonWarfare/POTATO/downloads","issues_url":"https://api.github.com/repos/BourbonWarfare/POTATO/issues{/number}","pulls_url":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls{/number}","milestones_url":"https://api.github.com/repos/BourbonWarfare/POTATO/milestones{/number}","notifications_url":"https://api.github.com/repos/BourbonWarfare/POTATO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BourbonWarfare/POTATO/labels{/name}","releases_url":"https://api.github.com/repos/BourbonWarfare/POTATO/releases{/id}","deployments_url":"https://api.github.com/repos/BourbonWarfare/POTATO/deployments","created_at":"2016-01-19T23:58:07Z","updated_at":"2016-07-11T21:29:34Z","pushed_at":"2016-09-27T21:20:44Z","git_url":"git://github.com/BourbonWarfare/POTATO.git","ssh_url":"git@github.com:BourbonWarfare/POTATO.git","clone_url":"https://github.com/BourbonWarfare/POTATO.git","svn_url":"https://github.com/BourbonWarfare/POTATO","homepage":null,"size":1741,"stargazers_count":4,"watchers_count":4,"language":"SQF","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91"},"html":{"href":"https://github.com/BourbonWarfare/POTATO/pull/91"},"issue":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/91"},"comments":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/BourbonWarfare/POTATO/statuses/ff0f4e10fef3c3a622073552cf4b77747aab1f2c"}}}}
{"actor":{"display_login":"AACO"}}