{"name":"BIS_fnc_diagPreview","title":"BIS fnc diagPreview","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_diagPreview","revid":347982,"updated":"2023-11-08T09:55:10Z","groups":["Diagnostic"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Previews selected classes from given container.","syntaxes":[{"syntax":"[container, parentClass, distance, startPos] call BIS_fnc_diagPreview","params":[{"name":"container","type":"String","optional":true,"default":"\"CfgVehicles\"","description":"class container. Can be:\n\n- \"CfgVehicles\"\n- \"CfgWeapons\"","type_expr":"String","text":"container: String - (Optional, default \"CfgVehicles\") class container. Can be:\n\n- \"CfgVehicles\"\n- \"CfgWeapons\""},{"name":"parentClass","type":"String","optional":true,"default":"typeOf player","description":"parent class of the objects (e.g. \"Car\" or \"Rifle\")","type_expr":"String","text":"parentClass: String - (Optional, default typeOf player) parent class of the objects (e.g. \"Car\" or \"Rifle\")"},{"name":"distance","type":"Number","optional":true,"default":"10","description":"distance between objects","type_expr":"Number","text":"distance: Number - (Optional, default 10) distance between objects"},{"name":"startPos","type":"Position","optional":true,"default":"`getPos player` or `screenToWorld]] [0.5,0.5]` in Eden Editor","description":"start position","type_expr":"Position","text":"startPos: Position - (Optional, default `getPos player` or `screenToWorld]] [0.5,0.5]` in Eden Editor) start position"}],"returns":{"type":"Array","type_expr":"Array","description":"list of created classes"}}],"examples":[{"code":["[\"CfgVehicles\", \"Car\", 15, [0,0,0]] call BIS_fnc_diagPreview;"]}]}