---
name: "BIN_fnc_getFormattedControl"
type: function
status: ok
groups: ["Contact"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIN_fnc_getFormattedControl
revid: 309599
updated: 2022-05-05T12:07:29Z
---

# BIN_fnc_getFormattedControl

*Function · Contact · Arma 3 v1.94*

## Description

Return a formatted string of a mapped control (same style as the Field Manual and Hints)

> [!NOTE]
> This content is exclusive to the Arma 3 Contact Expansion.

## Syntax

*syntax inferred from the function header*

```sqf
[param0] call BIN_fnc_getFormattedControl
```

**Parameters:**

- `param0` — 0: STRING - name of the control action
  1 (Optional): SCALAR - 0-based index of the mapped control

**Returns:** STRING - formatted control

## Function header

The comment at the top of the function's file in the game; this page's params, syntax, returns, description come from it.

```sqf
/*
Description:
Return a formatted string of a mapped control (same style as the Field Manual and Hints)

Parameter(s):
    0: STRING - name of the control action
    1 (Optional): SCALAR - 0-based index of the mapped control

Returns:
STRING - formatted control
*/
```

<sub>Source: [BI Community Wiki — BIN fnc getFormattedControl](https://community.bistudio.com/wiki/BIN_fnc_getFormattedControl) (revision 309599).</sub>
