{"action":"created","issue":{"url":"https://api.github.com/repos/hkzorman/advanced_npc/issues/40","repository_url":"https://api.github.com/repos/hkzorman/advanced_npc","labels_url":"https://api.github.com/repos/hkzorman/advanced_npc/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/hkzorman/advanced_npc/issues/40/comments","events_url":"https://api.github.com/repos/hkzorman/advanced_npc/issues/40/events","html_url":"https://github.com/hkzorman/advanced_npc/issues/40","id":315927455,"number":40,"title":"How put a program in queue","user":{"login":"BrunoMine","id":7986261,"avatar_url":"https://avatars1.githubusercontent.com/u/7986261?v=4","gravatar_id":"","url":"https://api.github.com/users/BrunoMine","html_url":"https://github.com/BrunoMine","followers_url":"https://api.github.com/users/BrunoMine/followers","following_url":"https://api.github.com/users/BrunoMine/following{/other_user}","gists_url":"https://api.github.com/users/BrunoMine/gists{/gist_id}","starred_url":"https://api.github.com/users/BrunoMine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrunoMine/subscriptions","organizations_url":"https://api.github.com/users/BrunoMine/orgs","repos_url":"https://api.github.com/users/BrunoMine/repos","events_url":"https://api.github.com/users/BrunoMine/events{/privacy}","received_events_url":"https://api.github.com/users/BrunoMine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-19T15:26:09Z","updated_at":"2018-04-19T17:37:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"And this way does not allow you to queue multiple programs, apparently it runs all at once.\r\n```\r\nnpc.programs.execute(self, \"advanced_npc:walk_to_pos\", {\r\n\tend_pos = {\r\n\t\tplace_type=\"bed_primary\", \r\n\t\tuse_access_node=true\r\n\t}\r\n})\r\nnpc.programs.execute(self, \"advanced_npc:use_bed\", {\r\n\tpos = \"bed_primary\",\r\n\taction = npc.programs.const.node_ops.beds.LAY\r\n})\r\nnpc.programs.execute(self, \"advanced_npc:idle\", {\r\n\tacknowledge_nearby_objs = false,\r\n\twander_chance = 0\r\n})\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hkzorman/advanced_npc/issues/comments/382819959","html_url":"https://github.com/hkzorman/advanced_npc/issues/40#issuecomment-382819959","issue_url":"https://api.github.com/repos/hkzorman/advanced_npc/issues/40","id":382819959,"user":{"login":"BrunoMine","id":7986261,"avatar_url":"https://avatars1.githubusercontent.com/u/7986261?v=4","gravatar_id":"","url":"https://api.github.com/users/BrunoMine","html_url":"https://github.com/BrunoMine","followers_url":"https://api.github.com/users/BrunoMine/followers","following_url":"https://api.github.com/users/BrunoMine/following{/other_user}","gists_url":"https://api.github.com/users/BrunoMine/gists{/gist_id}","starred_url":"https://api.github.com/users/BrunoMine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrunoMine/subscriptions","organizations_url":"https://api.github.com/users/BrunoMine/orgs","repos_url":"https://api.github.com/users/BrunoMine/repos","events_url":"https://api.github.com/users/BrunoMine/events{/privacy}","received_events_url":"https://api.github.com/users/BrunoMine/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T17:37:11Z","updated_at":"2018-04-19T17:37:11Z","author_association":"CONTRIBUTOR","body":"Well, I think there must be a program that does this, eventually we will have one program (or a sequence of programs) within another.\r\nOptionally it can run continuously while the queue is empty.\r\nI currently use this to define interactions within a house, it's similar to a plantation, but every object in the house has a different interaction."}}
{"actor":{"display_login":"BrunoMine"}}