{"name":"BIS_fnc_destroyer01InitHullNumbers","operator":null,"title":"BIS fnc destroyer01InitHullNumbers","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01InitHullNumbers","revid":286028,"updated":"2021-06-20T17:24:30Z","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 sub function designed to customize ships hull numbers.","syntaxes":[{"syntax":"[] call BIS_fnc_destroyer01InitHullNumbers","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-part object\nand","since":null,"text":"0: ship-part object\nand","source":"docblock"},{"name":"param1","type":"Number","types":["Number"],"optional":false,"default":null,"description":null,"since":null,"text":"1: number that should be displayed on the selection","source":"docblock"},{"name":"param2","type":null,"types":[],"optional":false,"default":null,"description":"selection number","since":null,"text":"2: selection number","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"nothing\nShip's hull number is set to specified number.","source":"docblock"}}],"examples":[{"text":"```sqf\nclass CustomShipNumber1\n{\n    displayName=\"$STR_3den_object_attribute_CustomShipNumber1_displayname\";\n    tooltip=\"$STR_3den_object_attribute_CustomShipNumber1_tooltip\";\n    property=\"CustomShipNumber1\";\n    control=\"EditShort\";\n    expression=\"[([_this, 'Land_Destroyer_01_hull_01_F'] call BIS_fnc_destroyer01GetShipPart), _value, 0] spawn BIS_fnc_destroyer01InitHullNumbers;\";\n    defaultValue=\"0\";\n    validate = \"number\";\n    condition = \"object\";\n    typeName = \"NUMBER\";\n};\n```","code":["class CustomShipNumber1\n{\n    displayName=\"$STR_3den_object_attribute_CustomShipNumber1_displayname\";\n    tooltip=\"$STR_3den_object_attribute_CustomShipNumber1_tooltip\";\n    property=\"CustomShipNumber1\";\n    control=\"EditShort\";\n    expression=\"[([_this, 'Land_Destroyer_01_hull_01_F'] call BIS_fnc_destroyer01GetShipPart), _value, 0] spawn BIS_fnc_destroyer01InitHullNumbers;\";\n    defaultValue=\"0\";\n    validate = \"number\";\n    condition = \"object\";\n    typeName = \"NUMBER\";\n};"]}],"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 sub function designed to customize ships hull numbers.","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-part object\nand","text":"ship-part object\nand"},{"index":1,"name":null,"types":["Number"],"optional":false,"default":null,"description":null,"text":"number that should be displayed on the selection"},{"index":2,"name":null,"types":[],"optional":false,"default":null,"description":"selection number","text":"selection number"}],"returns":{"types":["Nothing"],"text":"nothing\nShip's hull number is set to specified number."},"examples":["class CustomShipNumber1\n{\n    displayName=\"$STR_3den_object_attribute_CustomShipNumber1_displayname\";\n    tooltip=\"$STR_3den_object_attribute_CustomShipNumber1_tooltip\";\n    property=\"CustomShipNumber1\";\n    control=\"EditShort\";\n    expression=\"[([_this, 'Land_Destroyer_01_hull_01_F'] call BIS_fnc_destroyer01GetShipPart), _value, 0] spawn BIS_fnc_destroyer01InitHullNumbers;\";\n    defaultValue=\"0\";\n    validate = \"number\";\n    condition = \"object\";\n    typeName = \"NUMBER\";\n};"],"syntax":null,"execution":"- Call from vehicles config of eden attributes.","notes":null,"requirements":"Object (ship) must have predefined hidden selections for hull number. Pass object of ship part component which contains numbered selections.","meta":{},"text":"Author: Bravo Zero One development\n- John_Spartan\n\nDescription:\n- This is a sub function designed to customize ships hull numbers.\n\nExecution:\n- Call from vehicles config of eden attributes.\n\n    Example:\n        class CustomShipNumber1\n        {\n            displayName=\"$STR_3den_object_attribute_CustomShipNumber1_displayname\";\n            tooltip=\"$STR_3den_object_attribute_CustomShipNumber1_tooltip\";\n            property=\"CustomShipNumber1\";\n            control=\"EditShort\";\n            expression=\"[([_this, 'Land_Destroyer_01_hull_01_F'] call BIS_fnc_destroyer01GetShipPart), _value, 0] spawn BIS_fnc_destroyer01InitHullNumbers;\";\n            defaultValue=\"0\";\n            validate = \"number\";\n            condition = \"object\";\n            typeName = \"NUMBER\";\n        };\n\nRequired:\n    Object (ship) must have predefined hidden selections for hull number. Pass object of ship part component which contains numbered selections.\n\nParameter(s):\n    _this select 0: mode (Scalar)\n    0: ship-part object\n    and\n    1: number that should be displayed on the selection\n    2: selection number\n\nReturns: nothing\nResult: Ship's hull number is set to specified number."},"filled_from_docblock":["description","params","returns","examples"]}