GetMenuSelection

Category: Objects / Menu
Since engine version: 1.0 OC

Description

Determines the currently selected menu entry of the currently open menu of an object, or nil if no menu is open.

Syntax

int? GetMenuSelection();

Example

Log("Current selection: entry %d...", GetCursor(0)->GetMenuSelection();
Writes to the log which menu entry the player has currently selected.
See also: CreateMenu
Sven2, 2001-11