Arma 3 Scripting

BIS_fnc_kbMenu

  • Arma 3 v0.50
  • First in Take On Helicopters v1.00

Function · Markdown · JSON · original wiki page

Description

Opens conversation menu. Script terminates itself when menu selection is finished.

Syntax

syntax inferred from the function header

[param0] call BIS_fnc_kbMenu

Parameters:

Returns: NUMBER - ID of select option

Function header

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

/*
Description:
Opens conversation menu. Script terminates itself when menu selection is finished.

Parameter(s):
_this select 0: ARRAY or STRING - List of responses (of type ARRAY) or Menu name
    Responses are in format:
    _response select 0: STRING or ANY - Display name when STRING, otherwise used as default option when menu is closed without selecting anything.
    _response select 1:
        STRING - expression
        ARRAY - BIS_fnc_kbTell params

Returns:
NUMBER - ID of select option
*/