{"action":"created","issue":{"url":"https://api.github.com/repos/CntoDev/template/issues/8","repository_url":"https://api.github.com/repos/CntoDev/template","labels_url":"https://api.github.com/repos/CntoDev/template/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/CntoDev/template/issues/8/comments","events_url":"https://api.github.com/repos/CntoDev/template/issues/8/events","html_url":"https://github.com/CntoDev/template/issues/8","id":144490697,"number":8,"title":"simplify faction loadout generation","user":{"login":"milivojm","id":7799132,"avatar_url":"https://avatars.githubusercontent.com/u/7799132?v=3","gravatar_id":"","url":"https://api.github.com/users/milivojm","html_url":"https://github.com/milivojm","followers_url":"https://api.github.com/users/milivojm/followers","following_url":"https://api.github.com/users/milivojm/following{/other_user}","gists_url":"https://api.github.com/users/milivojm/gists{/gist_id}","starred_url":"https://api.github.com/users/milivojm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milivojm/subscriptions","organizations_url":"https://api.github.com/users/milivojm/orgs","repos_url":"https://api.github.com/users/milivojm/repos","events_url":"https://api.github.com/users/milivojm/events{/privacy}","received_events_url":"https://api.github.com/users/milivojm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CntoDev/template/labels/testing-needed","name":"testing-needed","color":"1d76db"}],"state":"open","locked":false,"assignee":{"login":"milivojm","id":7799132,"avatar_url":"https://avatars.githubusercontent.com/u/7799132?v=3","gravatar_id":"","url":"https://api.github.com/users/milivojm","html_url":"https://github.com/milivojm","followers_url":"https://api.github.com/users/milivojm/followers","following_url":"https://api.github.com/users/milivojm/following{/other_user}","gists_url":"https://api.github.com/users/milivojm/gists{/gist_id}","starred_url":"https://api.github.com/users/milivojm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milivojm/subscriptions","organizations_url":"https://api.github.com/users/milivojm/orgs","repos_url":"https://api.github.com/users/milivojm/repos","events_url":"https://api.github.com/users/milivojm/events{/privacy}","received_events_url":"https://api.github.com/users/milivojm/received_events","type":"User","site_admin":false},"milestone":null,"comments":31,"created_at":"2016-03-30T07:43:01Z","updated_at":"2016-03-31T12:35:51Z","closed_at":null,"body":"Mission makers tend to create custom loadout and custom factions for specialized missions. Our goal should be to simplify the process as much as we can, make it simple and fast to use.\r\n\r\n1. Should we go the 'F3 way', use defines in the beginning to change the gear while having a scripted skeleton below. \r\n1. Should we give them only small changes to the default gear with functions that basically just replace item X with item Y, uniform X with uniform Y? \r\n1. Should we use faction prototype unit with transformation functions for others? For example, MM creates a one unit and gives it a variable name in .sqm and calls a certain function which states _this is faction prototype, use it's gear by default_. All spawned units then 'inherit' it's gear but also apply some custom transformation based on the class name. Custom transformations are looked for in some folder in the mission. \r\n1. Something else."},"comment":{"url":"https://api.github.com/repos/CntoDev/template/issues/comments/203911003","html_url":"https://github.com/CntoDev/template/issues/8#issuecomment-203911003","issue_url":"https://api.github.com/repos/CntoDev/template/issues/8","id":203911003,"user":{"login":"milivojm","id":7799132,"avatar_url":"https://avatars.githubusercontent.com/u/7799132?v=3","gravatar_id":"","url":"https://api.github.com/users/milivojm","html_url":"https://github.com/milivojm","followers_url":"https://api.github.com/users/milivojm/followers","following_url":"https://api.github.com/users/milivojm/following{/other_user}","gists_url":"https://api.github.com/users/milivojm/gists{/gist_id}","starred_url":"https://api.github.com/users/milivojm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milivojm/subscriptions","organizations_url":"https://api.github.com/users/milivojm/orgs","repos_url":"https://api.github.com/users/milivojm/repos","events_url":"https://api.github.com/users/milivojm/events{/privacy}","received_events_url":"https://api.github.com/users/milivojm/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T12:35:51Z","updated_at":"2016-03-31T12:35:51Z","body":"> Alternatively, you can just leave it there and base further changes on it (I would recommend that approach instead).\r\n\r\nI was hoping you're going to say that. I will pay more attention next time.\r\n\r\n> Yes, for some reason respawn triggers twice for me in \"listen MP\" (editor MP preview), I'll check how it works on dedicated. I didn't use init.sqf, I created a bootstrap function with preinit = 1 (without recompile) that called the CBA function for init and respawn.\r\nThis can be done \"cleanly\" in the template as the function remains fully within the feature's scope.\r\n\r\nMaybe you've got `respawnOnStart` set to 0 or 1 in the description.ext? It seems 0 is default value and it does run respawn script. "}}