Arma 3 Scripting

Function in Contact

BIN_fnc_getFormattedControl

Also available as Markdown and JSON, or read the original wiki page.

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

[param0] call BIN_fnc_getFormattedControl

Parameters:

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.

/*
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
*/