Arma 3 Scripting

ctrlMapMouseOver

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · original wiki page

Description

Returns description of map sign mouse cursor is over. Works with in-game map as well as 2D editor map in edit mode.

Syntax

ctrlMapMouseOver control

Parameters:

Returns: Array - possible values:

Examples

Example 1

(uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overFriendly"];

_mouseover = if (count (ctrlMapMouseOver (uiNamespace getVariable "_map")) > 0) then
{
    ctrlMapMouseOver (uiNamespace getVariable "_map")
}
else
{
    [""]
};

if (_mouseover select 0 == "task" && str(_logic getVariable "onTaskAssigned") != str{}) then
{
    //--- Task
    (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_overMission"];
}
else
{
    //--- Waypoint
    (uiNamespace getVariable "_map") ctrlMapCursor ["Track","HC_move"];
};

Example 2

onEachFrame {hintSilent str ctrlMapMouseOver (findDisplay 12 displayCtrl 51)};

See also

findDisplay · displayCtrl · BIS_fnc_createTooltip