Arma 3 Scripting

Function in Conversations

BIS_fnc_kbMenu

Also available as Markdown and JSON, or read the 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
*/