Arma 3 Scripting

Command in Interaction

setUserActionText

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

Description

Changes user added action (see addAction) menu item text.

Syntax

object setUserActionText [actionIndex, textMenu, textWindowBackground, textWindowForeground]

Parameters:

Returns: Nothing

Examples

Example 1

_id = player addAction ["Hello", ""];
player setUserActionText [_id, "Good Bye"];

Example 2

_id = billboard addAction ["Some Action", {}];
billboard setUserActionText [
    _id, 
    "Some Action", 
    "<t color='#ff0000'>Background-----------------</t>
Multiline
Multiline
Multiline
. . ."
, "<t color='#00ff00'>-----------------Foreground</t>" ];

See also

actionIDs · actionParams · addAction · inGameUISetEventHandler · showHUD · inputAction · removeAction · removeAllActions · action