{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/31379393","id":31379393,"diff_hunk":"@@ -0,0 +1,42 @@\n+/*\n+ * Author: Loren Luke Leimer\n+ * Daisy Chains two explosives together\n+ *\n+ * Arguments:\n+ * 0: Explosive <OBJECT>\n+ * 1: Target Explosive <OBJECT>\n+\n+ *\n+ * Return Value:\n+ * <NOTHING>\n+ *\n+ * Example:\n+ * [_explosive,_target] call ACE_Explosives_fnc_daisyChainTo;\n+ *\n+ * Public: Yes\n+ */\n+#include \"script_component.hpp\"\n+  \n+private [\"_unit\",\"_target\"];\n+\n+_explosive = _this select 0;\n+_target = _this select 1;\n+\n+if (isNil QGVAR(DaisyChains)) then {\n+    GVAR(DaisyChains) = [];\n+};\n+\n+_result = false;\n+\n+{\n+    if (count GVAR(DaisyChains) < 1) exitWith {};\n+    if (_x select 0 == _explosive) then {\n+\t    if (_x select 1 == _target) then {_result = true};\n+\t};\n+} forEach GVAR(DaisyChains);","path":"addons/explosives/functions/fnc_daisyChainTo.sqf","position":36,"original_position":36,"commit_id":"9a18ed9bcf2bacc37bc0f49106fe53541babe409","original_commit_id":"9a18ed9bcf2bacc37bc0f49106fe53541babe409","user":{"login":"ulteq","id":9437207,"avatar_url":"https://avatars.githubusercontent.com/u/9437207?v=3","gravatar_id":"","url":"https://api.github.com/users/ulteq","html_url":"https://github.com/ulteq","followers_url":"https://api.github.com/users/ulteq/followers","following_url":"https://api.github.com/users/ulteq/following{/other_user}","gists_url":"https://api.github.com/users/ulteq/gists{/gist_id}","starred_url":"https://api.github.com/users/ulteq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulteq/subscriptions","organizations_url":"https://api.github.com/users/ulteq/orgs","repos_url":"https://api.github.com/users/ulteq/repos","events_url":"https://api.github.com/users/ulteq/events{/privacy}","received_events_url":"https://api.github.com/users/ulteq/received_events","type":"User","site_admin":false},"body":"You could just do this in the forEach body:\r\n\r\n`if (_x isEqualTo [_explosive, _target]) exitWith { _result = true; };`","created_at":"2015-05-30T09:55:30Z","updated_at":"2015-05-30T09:55:30Z","html_url":"https://github.com/acemod/ACE3/pull/1219#discussion_r31379393","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/1219","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/31379393"},"html":{"href":"https://github.com/acemod/ACE3/pull/1219#discussion_r31379393"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1219"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/1219","id":35484256,"html_url":"https://github.com/acemod/ACE3/pull/1219","diff_url":"https://github.com/acemod/ACE3/pull/1219.diff","patch_url":"https://github.com/acemod/ACE3/pull/1219.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/1219","number":1219,"state":"open","locked":false,"title":"Daisy Chain PR","user":{"login":"LorenLuke","id":6456096,"avatar_url":"https://avatars.githubusercontent.com/u/6456096?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenLuke","html_url":"https://github.com/LorenLuke","followers_url":"https://api.github.com/users/LorenLuke/followers","following_url":"https://api.github.com/users/LorenLuke/following{/other_user}","gists_url":"https://api.github.com/users/LorenLuke/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenLuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenLuke/subscriptions","organizations_url":"https://api.github.com/users/LorenLuke/orgs","repos_url":"https://api.github.com/users/LorenLuke/repos","events_url":"https://api.github.com/users/LorenLuke/events{/privacy}","received_events_url":"https://api.github.com/users/LorenLuke/received_events","type":"User","site_admin":false},"body":"Enables Daisy Chaining of explosives together.","created_at":"2015-05-15T04:41:45Z","updated_at":"2015-05-30T09:55:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26486ca99eac6fd02d57a81ac5461b689a3b4408","assignee":{"login":"CorruptedHeart","id":383331,"avatar_url":"https://avatars.githubusercontent.com/u/383331?v=3","gravatar_id":"","url":"https://api.github.com/users/CorruptedHeart","html_url":"https://github.com/CorruptedHeart","followers_url":"https://api.github.com/users/CorruptedHeart/followers","following_url":"https://api.github.com/users/CorruptedHeart/following{/other_user}","gists_url":"https://api.github.com/users/CorruptedHeart/gists{/gist_id}","starred_url":"https://api.github.com/users/CorruptedHeart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorruptedHeart/subscriptions","organizations_url":"https://api.github.com/users/CorruptedHeart/orgs","repos_url":"https://api.github.com/users/CorruptedHeart/repos","events_url":"https://api.github.com/users/CorruptedHeart/events{/privacy}","received_events_url":"https://api.github.com/users/CorruptedHeart/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/acemod/ACE3/milestones/3","html_url":"https://github.com/acemod/ACE3/milestones/3.1.0","labels_url":"https://api.github.com/repos/acemod/ACE3/milestones/3/labels","id":959656,"number":3,"title":"3.1.0","description":"","creator":{"login":"esteldunedain","id":7674951,"avatar_url":"https://avatars.githubusercontent.com/u/7674951?v=3","gravatar_id":"","url":"https://api.github.com/users/esteldunedain","html_url":"https://github.com/esteldunedain","followers_url":"https://api.github.com/users/esteldunedain/followers","following_url":"https://api.github.com/users/esteldunedain/following{/other_user}","gists_url":"https://api.github.com/users/esteldunedain/gists{/gist_id}","starred_url":"https://api.github.com/users/esteldunedain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esteldunedain/subscriptions","organizations_url":"https://api.github.com/users/esteldunedain/orgs","repos_url":"https://api.github.com/users/esteldunedain/repos","events_url":"https://api.github.com/users/esteldunedain/events{/privacy}","received_events_url":"https://api.github.com/users/esteldunedain/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":186,"state":"open","created_at":"2015-01-31T19:41:24Z","updated_at":"2015-05-30T09:33:28Z","due_on":"2015-05-29T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/1219/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/1219/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/1219/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/9a18ed9bcf2bacc37bc0f49106fe53541babe409","head":{"label":"LorenLuke:master","ref":"master","sha":"9a18ed9bcf2bacc37bc0f49106fe53541babe409","user":{"login":"LorenLuke","id":6456096,"avatar_url":"https://avatars.githubusercontent.com/u/6456096?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenLuke","html_url":"https://github.com/LorenLuke","followers_url":"https://api.github.com/users/LorenLuke/followers","following_url":"https://api.github.com/users/LorenLuke/following{/other_user}","gists_url":"https://api.github.com/users/LorenLuke/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenLuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenLuke/subscriptions","organizations_url":"https://api.github.com/users/LorenLuke/orgs","repos_url":"https://api.github.com/users/LorenLuke/repos","events_url":"https://api.github.com/users/LorenLuke/events{/privacy}","received_events_url":"https://api.github.com/users/LorenLuke/received_events","type":"User","site_admin":false},"repo":{"id":35397459,"name":"ACE3","full_name":"LorenLuke/ACE3","owner":{"login":"LorenLuke","id":6456096,"avatar_url":"https://avatars.githubusercontent.com/u/6456096?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenLuke","html_url":"https://github.com/LorenLuke","followers_url":"https://api.github.com/users/LorenLuke/followers","following_url":"https://api.github.com/users/LorenLuke/following{/other_user}","gists_url":"https://api.github.com/users/LorenLuke/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenLuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenLuke/subscriptions","organizations_url":"https://api.github.com/users/LorenLuke/orgs","repos_url":"https://api.github.com/users/LorenLuke/repos","events_url":"https://api.github.com/users/LorenLuke/events{/privacy}","received_events_url":"https://api.github.com/users/LorenLuke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LorenLuke/ACE3","description":"Open-source realism mod for Arma 3","fork":true,"url":"https://api.github.com/repos/LorenLuke/ACE3","forks_url":"https://api.github.com/repos/LorenLuke/ACE3/forks","keys_url":"https://api.github.com/repos/LorenLuke/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LorenLuke/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LorenLuke/ACE3/teams","hooks_url":"https://api.github.com/repos/LorenLuke/ACE3/hooks","issue_events_url":"https://api.github.com/repos/LorenLuke/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/LorenLuke/ACE3/events","assignees_url":"https://api.github.com/repos/LorenLuke/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/LorenLuke/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/LorenLuke/ACE3/tags","blobs_url":"https://api.github.com/repos/LorenLuke/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LorenLuke/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LorenLuke/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/LorenLuke/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LorenLuke/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/LorenLuke/ACE3/languages","stargazers_url":"https://api.github.com/repos/LorenLuke/ACE3/stargazers","contributors_url":"https://api.github.com/repos/LorenLuke/ACE3/contributors","subscribers_url":"https://api.github.com/repos/LorenLuke/ACE3/subscribers","subscription_url":"https://api.github.com/repos/LorenLuke/ACE3/subscription","commits_url":"https://api.github.com/repos/LorenLuke/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/LorenLuke/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/LorenLuke/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/LorenLuke/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/LorenLuke/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/LorenLuke/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LorenLuke/ACE3/merges","archive_url":"https://api.github.com/repos/LorenLuke/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LorenLuke/ACE3/downloads","issues_url":"https://api.github.com/repos/LorenLuke/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/LorenLuke/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/LorenLuke/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/LorenLuke/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LorenLuke/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/LorenLuke/ACE3/releases{/id}","created_at":"2015-05-11T02:22:20Z","updated_at":"2015-05-15T03:04:11Z","pushed_at":"2015-05-15T04:40:24Z","git_url":"git://github.com/LorenLuke/ACE3.git","ssh_url":"git@github.com:LorenLuke/ACE3.git","clone_url":"https://github.com/LorenLuke/ACE3.git","svn_url":"https://github.com/LorenLuke/ACE3","homepage":"http://ace3mod.com/","size":210357,"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":"28c8aba9bda9b53572a3efb2ea40cd0091ed0087","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-05-30T09:46:44Z","pushed_at":"2015-05-30T07:05:05Z","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":299384,"stargazers_count":243,"watchers_count":243,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":171,"mirror_url":null,"open_issues_count":176,"forks":171,"open_issues":176,"watchers":243,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1219"},"html":{"href":"https://github.com/acemod/ACE3/pull/1219"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/1219"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/1219/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1219/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1219/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/9a18ed9bcf2bacc37bc0f49106fe53541babe409"}}}}