{"name":"BIS_fnc_destroyer01InitHullNumbers","title":"BIS fnc destroyer01InitHullNumbers","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01InitHullNumbers","revid":379557,"updated":"2026-10-31T13:49:20Z","groups":["Destroyer"],"status":"ok","games":{"arma3":"1.84"},"since":"arma3 1.84","arma3_since":"1.84","locality":{"effect":"global"},"description":"Sets the number shown on one of the destroyer's hull number selections. It applies the texture `\\A3\\Boat_F_Destroyer\\Destroyer_01\\Data\\Destroyer_01_N_0<number>_co.paa` to the given hidden selection of a ship part with setObjectTextureGlobal. Because the number is put after a fixed \"0\" in the file name, it is meant to be a single digit (0..9).\nThe function is called by the expressions of the destroyer's custom hull number attributes in the Eden Editor, and does nothing outside the server.","syntaxes":[{"syntax":"[shipPart, number, selection] call BIS_fnc_destroyer01InitHullNumbers","params":[{"name":"shipPart","type":"Object","description":"the ship part that has the hull number selections, e.g. the result of BIS_fnc_destroyer01GetShipPart","type_expr":"Object"},{"name":"number","type":"Number","optional":true,"default":"0","description":"digit to display","type_expr":"Number","text":"number: Number - (Optional, default 0) digit to display"},{"name":"selection","type":"Number","optional":true,"default":"0","description":"index of the hidden selection to retexture","type_expr":"Number","text":"selection: Number - (Optional, default 0) index of the hidden selection to retexture"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"text":"Eden attribute of the destroyer that sets the first digit (from the function's header):\n\n```cpp\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":["// on the server: show the digit 7 on hidden selection 0 of the first hull part\nprivate _hull = [myDestroyer, \"Land_Destroyer_01_hull_01_F\"] call BIS_fnc_destroyer01GetShipPart;\n[_hull, 7, 0] call BIS_fnc_destroyer01InitHullNumbers;"]}],"see_also":["BIS_fnc_destroyer01GetShipPart","BIS_fnc_destroyer01Init","setObjectTextureGlobal"]}