---
name: "BIS_fnc_destroyer01InitHullNumbers"
type: function
status: ok
groups: ["Destroyer"]
arma3_since: "1.84"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_destroyer01InitHullNumbers
revid: 379557
updated: 2026-10-31T13:49:20Z
---

# BIS_fnc_destroyer01InitHullNumbers

*Function · Destroyer · Arma 3 v1.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](../commands/setObjectTextureGlobal.md). Because the number is put after a fixed "0" in the file name, it is meant to be a single digit (0..9).
The function is called by the expressions of the destroyer's custom hull number attributes in the Eden Editor, and does nothing outside the server.

## Syntax

```sqf
[shipPart, number, selection] call BIS_fnc_destroyer01InitHullNumbers
```

**Parameters:**

- `shipPart`: [Object](../topics/Object.md) - the ship part that has the hull number selections, e.g. the result of [BIS_fnc_destroyer01GetShipPart](../functions/BIS_fnc_destroyer01GetShipPart.md)
- `number`: [Number](../topics/Number.md) - (Optional, default 0) digit to display
- `selection`: [Number](../topics/Number.md) - (Optional, default 0) index of the hidden selection to retexture

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

Eden attribute of the destroyer that sets the first digit (from the function's header):

```cpp
class CustomShipNumber1
{
    displayName = "$STR_3den_object_attribute_CustomShipNumber1_displayname";
    tooltip = "$STR_3den_object_attribute_CustomShipNumber1_tooltip";
    property = "CustomShipNumber1";
    control = "EditShort";
    expression = "[([_this, 'Land_Destroyer_01_hull_01_F'] call bis_fnc_destroyer01GetShipPart), _value, 0] spawn bis_fnc_destroyer01InitHullNumbers;";
    defaultValue = "0";
    validate = "number";
    condition = "object";
    typeName = "NUMBER";
};
```

### Example 2

```sqf
// on the server: show the digit 7 on hidden selection 0 of the first hull part
private _hull = [myDestroyer, "Land_Destroyer_01_hull_01_F"] call BIS_fnc_destroyer01GetShipPart;
[_hull, 7, 0] call BIS_fnc_destroyer01InitHullNumbers;
```

## See also

[BIS_fnc_destroyer01GetShipPart](../functions/BIS_fnc_destroyer01GetShipPart.md) · [BIS_fnc_destroyer01Init](../functions/BIS_fnc_destroyer01Init.md) · [setObjectTextureGlobal](../commands/setObjectTextureGlobal.md)

<sub>Source: [BI Community Wiki — BIS fnc destroyer01InitHullNumbers](https://community.bistudio.com/wiki/BIS_fnc_destroyer01InitHullNumbers) (revision 379557).</sub>
