{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/36490386","id":36490386,"diff_hunk":"@@ -2,21 +2,20 @@\n  * Author: commy2\n  *\n  * Returns the unit that has the given backpack object equipped.\n- * \n+ *\n  * Argument:\n- * 0: A backpack object (Object)\n- * \n+ * 0: Executing Unit (Object)\n+ * 1: A backpack object (Object)\n+ *\n  * Return value:\n  * Unit that has the backpack equipped. (Object)\n  */\n #include \"script_component.hpp\"\n+scopeName \"main\";\n \n-private [\"_backpack\", \"_unit\"];\n-\n-_backpack = _this select 0;\n-\n-_unit = objNull;\n+params [\"_unit\",\"_backpack\"];\n+_target = objNull;\n {\n-    if (backpackContainer _x == _backpack) exitWith {_unit = _x};\n-} forEach (allUnits + allDeadMen);\n-_unit\n+    if (backpackContainer _x == _backpack) then {_target = _x; breakTo \"main\"};\n+} forEach nearestObjects [_unit, [\"Man\"],2];","path":"addons/backpacks/functions/fnc_getBackpackAssignedUnit.sqf","position":30,"original_position":30,"commit_id":"57d484d3822d07f382f689371c70c74205c0e7f2","original_commit_id":"57d484d3822d07f382f689371c70c74205c0e7f2","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":"This probably is faster, but I managed to open a backpack at 2.8 meters","created_at":"2015-08-07T04:33:13Z","updated_at":"2015-08-07T04:33:13Z","html_url":"https://github.com/acemod/ACE3/pull/2016#discussion_r36490386","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/2016","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/36490386"},"html":{"href":"https://github.com/acemod/ACE3/pull/2016#discussion_r36490386"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2016"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/2016","id":41628975,"html_url":"https://github.com/acemod/ACE3/pull/2016","diff_url":"https://github.com/acemod/ACE3/pull/2016.diff","patch_url":"https://github.com/acemod/ACE3/pull/2016.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/2016","number":2016,"state":"open","locked":false,"title":"Code cleanup of the Backpack module.","user":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"body":"Code cleanup of the Backpack module.\r\n\r\nSplit PRs from #1989.","created_at":"2015-08-04T23:22:27Z","updated_at":"2015-08-07T04:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d45e0e47a2dc58e440341f65ea85af156569a15c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/2016/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/2016/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/2016/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/57d484d3822d07f382f689371c70c74205c0e7f2","head":{"label":"jokoho48:codeCleanupBackpack","ref":"codeCleanupBackpack","sha":"57d484d3822d07f382f689371c70c74205c0e7f2","user":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"repo":{"id":35878624,"name":"ACE3","full_name":"jokoho48/ACE3","owner":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jokoho48/ACE3","description":"Open-source realism mod for Arma 3","fork":true,"url":"https://api.github.com/repos/jokoho48/ACE3","forks_url":"https://api.github.com/repos/jokoho48/ACE3/forks","keys_url":"https://api.github.com/repos/jokoho48/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jokoho48/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jokoho48/ACE3/teams","hooks_url":"https://api.github.com/repos/jokoho48/ACE3/hooks","issue_events_url":"https://api.github.com/repos/jokoho48/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/jokoho48/ACE3/events","assignees_url":"https://api.github.com/repos/jokoho48/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/jokoho48/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/jokoho48/ACE3/tags","blobs_url":"https://api.github.com/repos/jokoho48/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jokoho48/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jokoho48/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/jokoho48/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jokoho48/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/jokoho48/ACE3/languages","stargazers_url":"https://api.github.com/repos/jokoho48/ACE3/stargazers","contributors_url":"https://api.github.com/repos/jokoho48/ACE3/contributors","subscribers_url":"https://api.github.com/repos/jokoho48/ACE3/subscribers","subscription_url":"https://api.github.com/repos/jokoho48/ACE3/subscription","commits_url":"https://api.github.com/repos/jokoho48/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/jokoho48/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/jokoho48/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/jokoho48/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/jokoho48/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/jokoho48/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jokoho48/ACE3/merges","archive_url":"https://api.github.com/repos/jokoho48/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jokoho48/ACE3/downloads","issues_url":"https://api.github.com/repos/jokoho48/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/jokoho48/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/jokoho48/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/jokoho48/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jokoho48/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/jokoho48/ACE3/releases{/id}","created_at":"2015-05-19T11:42:04Z","updated_at":"2015-05-20T20:08:46Z","pushed_at":"2015-08-06T23:25:25Z","git_url":"git://github.com/jokoho48/ACE3.git","ssh_url":"git@github.com:jokoho48/ACE3.git","clone_url":"https://github.com/jokoho48/ACE3.git","svn_url":"https://github.com/jokoho48/ACE3","homepage":"http://ace3mod.com/","size":256884,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"acemod:master","ref":"master","sha":"275b0c43000709282dafd5af89c949a12d8996be","user":{"login":"acemod","id":11369030,"avatar_url":"https://avatars.githubusercontent.com/u/11369030?v=3","gravatar_id":"","url":"https://api.github.com/users/acemod","html_url":"https://github.com/acemod","followers_url":"https://api.github.com/users/acemod/followers","following_url":"https://api.github.com/users/acemod/following{/other_user}","gists_url":"https://api.github.com/users/acemod/gists{/gist_id}","starred_url":"https://api.github.com/users/acemod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemod/subscriptions","organizations_url":"https://api.github.com/users/acemod/orgs","repos_url":"https://api.github.com/users/acemod/repos","events_url":"https://api.github.com/users/acemod/events{/privacy}","received_events_url":"https://api.github.com/users/acemod/received_events","type":"Organization","site_admin":false},"repo":{"id":29069174,"name":"ACE3","full_name":"acemod/ACE3","owner":{"login":"acemod","id":11369030,"avatar_url":"https://avatars.githubusercontent.com/u/11369030?v=3","gravatar_id":"","url":"https://api.github.com/users/acemod","html_url":"https://github.com/acemod","followers_url":"https://api.github.com/users/acemod/followers","following_url":"https://api.github.com/users/acemod/following{/other_user}","gists_url":"https://api.github.com/users/acemod/gists{/gist_id}","starred_url":"https://api.github.com/users/acemod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemod/subscriptions","organizations_url":"https://api.github.com/users/acemod/orgs","repos_url":"https://api.github.com/users/acemod/repos","events_url":"https://api.github.com/users/acemod/events{/privacy}","received_events_url":"https://api.github.com/users/acemod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acemod/ACE3","description":"Open-source realism mod for Arma 3","fork":false,"url":"https://api.github.com/repos/acemod/ACE3","forks_url":"https://api.github.com/repos/acemod/ACE3/forks","keys_url":"https://api.github.com/repos/acemod/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acemod/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acemod/ACE3/teams","hooks_url":"https://api.github.com/repos/acemod/ACE3/hooks","issue_events_url":"https://api.github.com/repos/acemod/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/acemod/ACE3/events","assignees_url":"https://api.github.com/repos/acemod/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/acemod/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/acemod/ACE3/tags","blobs_url":"https://api.github.com/repos/acemod/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acemod/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acemod/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/acemod/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/acemod/ACE3/languages","stargazers_url":"https://api.github.com/repos/acemod/ACE3/stargazers","contributors_url":"https://api.github.com/repos/acemod/ACE3/contributors","subscribers_url":"https://api.github.com/repos/acemod/ACE3/subscribers","subscription_url":"https://api.github.com/repos/acemod/ACE3/subscription","commits_url":"https://api.github.com/repos/acemod/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/acemod/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/acemod/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/acemod/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/acemod/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/acemod/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acemod/ACE3/merges","archive_url":"https://api.github.com/repos/acemod/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acemod/ACE3/downloads","issues_url":"https://api.github.com/repos/acemod/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/acemod/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/acemod/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/acemod/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acemod/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/acemod/ACE3/releases{/id}","created_at":"2015-01-10T19:59:12Z","updated_at":"2015-08-06T04:00:43Z","pushed_at":"2015-08-07T03:52:13Z","git_url":"git://github.com/acemod/ACE3.git","ssh_url":"git@github.com:acemod/ACE3.git","clone_url":"https://github.com/acemod/ACE3.git","svn_url":"https://github.com/acemod/ACE3","homepage":"http://ace3mod.com/","size":342831,"stargazers_count":286,"watchers_count":286,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":213,"mirror_url":null,"open_issues_count":260,"forks":213,"open_issues":260,"watchers":286,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2016"},"html":{"href":"https://github.com/acemod/ACE3/pull/2016"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/2016"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/2016/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2016/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2016/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/57d484d3822d07f382f689371c70c74205c0e7f2"}}}}