{"name":"BIS_fnc_diagMacrosSimpleObject","title":"BIS fnc diagMacrosSimpleObject","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_diagMacrosSimpleObject","revid":286045,"updated":"2021-06-20T17:24:45Z","groups":["Diagnostic"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Generates simple object config data.","syntaxes":[{"syntax":"[] call BIS_fnc_diagMacrosSimpleObject","params":[{"name":"param0","type":"Object, Array","type_expr":"Object | Array","default":"position calculated 15 meters away from player","description":"ground position where ground objects will be created (default: position calculated 15 meters away from player)","text":"0: OBJECT or ARRAY - ground position where ground objects will be created (default: position calculated 15 meters away from player)","source":"docblock"},{"name":"param1","type":"Number, Boolean","type_expr":"Number | Boolean","default":"false","description":"autolog mode (default: false)\n0 or false - no autolog, results will be only stored in clipboard\n1 or true - autolog on, results will be stored in \\A3\\macros_CfgVehicles_simpleObject_auto_A3.hpp file.\n2 - autlog on + world name, random number and custom suffix are appended to name of generated file to prevent overwriting and provide extra info","text":"1: SCALAR or BOOL - autolog mode (default: false)\n0 or false - no autolog, results will be only stored in clipboard\n1 or true - autolog on, results will be stored in \\A3\\macros_CfgVehicles_simpleObject_auto_A3.hpp file.\n2 - autlog on + world name, random number and custom suffix are appended to name of generated file to prevent overwriting and provide extra info","source":"docblock"},{"name":"param2","type":"Array","type_expr":"Array","default":"[]","description":"classes you want to scan, use [] to scan all (default: []).","text":"2: ARRAY - classes you want to scan, use [] to scan all (default: []).","source":"docblock"},{"name":"param3","type":"Object, Array","type_expr":"Object | Array","default":"position calculated 15 meters away from player","description":"sea position where ground objects will be created (default: position calculated 15 meters away from player)","text":"3: OBJECT or ARRAY - sea position where ground objects will be created (default: position calculated 15 meters away from player)","source":"docblock"},{"name":"param4","type":"String","type_expr":"String","default":"\"\"","description":"custom suffix added to filename if autolog is used (default: \"\").","text":"4: STRING - custom suffix added to filename if autolog is used (default: \"\").","source":"docblock"}],"returns":null}],"examples":[{"code":["bis_scriptHandle = [] spawn BIS_fnc_diagMacrosSimpleObject;"]},{"code":["Expected output per class (animate and hide arrays can have varying amount of elements):\n#define CFGVEHICLES_SIMPLEOBJECT_class_F\\\n    class SimpleObject\\\n    {\\\n        animate[] =\\\n        {\\\n            {\"animationName1\", 1},\\\n            {\"animationName2\", 2}\\\n        };\\\n        hide[] =\\\n        {\\\n            \"animationSelection1\",\\\n            \"animationSelection2\"\\\n        };\\\n        verticalOffsetAsl = 0;\\\n    };"]}],"docblock":{"text":"Generates simple object config data.\n\nParameters:\n    0: OBJECT or ARRAY - ground position where ground objects will be created (default: position calculated 15 meters away from player)\n    1: SCALAR or BOOL - autolog mode (default: false)\n        0 or false - no autolog, results will be only stored in clipboard\n        1 or true - autolog on, results will be stored in \\A3\\macros_CfgVehicles_simpleObject_auto_A3.hpp file.\n        2 - autlog on + world name, random number and custom suffix are appended to name of generated file to prevent overwriting and provide extra info\n    2: ARRAY - classes you want to scan, use [] to scan all (default: []).\n    3: OBJECT or ARRAY - sea position where ground objects will be created (default: position calculated 15 meters away from player)\n    4: STRING - custom suffix added to filename if autolog is used (default: \"\").\n\nExample:\nbis_scriptHandle = [] spawn BIS_fnc_diagMacrosSimpleObject;\n\nExpected output per class (animate and hide arrays can have varying amount of elements):\n#define CFGVEHICLES_SIMPLEOBJECT_class_F\\\n    class SimpleObject\\\n    {\\\n        animate[] =\\\n        {\\\n            {\"animationName1\", 1},\\\n            {\"animationName2\", 2}\\\n        };\\\n        hide[] =\\\n        {\\\n            \"animationSelection1\",\\\n            \"animationSelection2\"\\\n        };\\\n        verticalOffsetAsl = 0;\\\n    };"},"filled_from_docblock":["description","params","examples"]}