{"name":"BIS_fnc_destroyer01GetShipPart","operator":null,"title":"BIS fnc destroyer01GetShipPart","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01GetShipPart","revid":286025,"updated":"2021-06-20T17:24:28Z","groups":["Destroyer"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.84"}],"since":{"game":"arma3","name":"Arma 3","version":"1.84"},"arma3_since":"1.84","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"- This is a helper function to get ship components (objects) by class name from stored array in ships master component's name-space (\"BIS_CarrierParts\" array).","syntaxes":[{"syntax":"[] call BIS_fnc_destroyer01GetShipPart","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"Number","types":["Number"],"optional":false,"default":null,"description":"(Scalar)","since":null,"text":"0: (Scalar)","source":"docblock"},{"name":"param0","type":null,"types":[],"optional":false,"default":null,"description":"ship Base/object","since":null,"text":"0: ship Base/object","source":"docblock"},{"name":"param1","type":null,"types":[],"optional":false,"default":null,"description":"ship part class name to find","since":null,"text":"1: ship part class name to find","source":"docblock"}],"returns":{"type":"Object","types":["Object"],"description":null,"text":"object (ship part that matches selected class name)\nn/a","source":"docblock"}}],"examples":[{"text":"```sqf\n[_this, 'Land_Destroyer_01_hull_05_F'] call BIS_fnc_destroyer01GetShipPart;\n```","code":["[_this, 'Land_Destroyer_01_hull_05_F'] call BIS_fnc_destroyer01GetShipPart;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Destroyer","Functions","Introduced with Arma 3 version 1.84"],"docblock":{"author":"Bravo Zero One development, John_Spartan","description":"- This is a helper function to get ship components (objects) by class name from stored array in ships master component's name-space (\"BIS_CarrierParts\" array).","params":[{"index":0,"name":"mode","types":["Number"],"optional":false,"default":null,"description":"(Scalar)","text":"(Scalar)"},{"index":0,"name":null,"types":[],"optional":false,"default":null,"description":"ship Base/object","text":"ship Base/object"},{"index":1,"name":null,"types":[],"optional":false,"default":null,"description":"ship part class name to find","text":"ship part class name to find"}],"returns":{"types":["Object"],"text":"object (ship part that matches selected class name)\nn/a"},"examples":["[_this, 'Land_Destroyer_01_hull_05_F'] call BIS_fnc_destroyer01GetShipPart;"],"syntax":null,"execution":"- Call from script or config.","notes":null,"requirements":"- Ships master object must be present. Ships master object must have initialized the array of sub components.","meta":{},"text":"Author: Bravo Zero One development\n- John_Spartan\n\nDescription:\n- This is a helper function to get ship components (objects) by class name from stored array in ships master component's name-space (\"BIS_CarrierParts\" array).\n\nExecution:\n- Call from script or config.\n\n    Example:\n    [_this, 'Land_Destroyer_01_hull_05_F'] call BIS_fnc_destroyer01GetShipPart;\n\nRequirements:\n- Ships master object must be present. Ships master object must have initialized the array of sub components.\n\nParameter(s):\n    _this select 0: mode (Scalar)\n    0: ship Base/object\n    1: ship part class name to find\n\nReturns: object (ship part that matches selected class name)\nResult: n/a"},"filled_from_docblock":["description","params","returns","examples"]}