Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Defines an action performed when the user double clicks on the map.

Be aware that enabling a double-click action for the editor map using this function disables object placements by double-clicking (you can still place objects by right-clicking the location, and then selecting New Object).

Syntax

Syntax:map onDoubleClick command
Parameters:
  • map: Control - Only the editor map is supported at this point.
  • command: String - Command to execute when map is double-clicked. The following variables are available in the command section:
    • _pos: Position3D - Clicked position.
    • _units: Array - Units which were selected (using function keys) before opening the map (may be non-functional in V1.23 and lower).
    • _alt: Boolean - Whether the Alt key was pressed.
    • _map: Control - Current map control.
Return Value:Nothing

Examples

Examples:
map onDoubleClick "[_map,_pos] execVM 'showNewObject.sqf'";

Additional Information

See also: onMapSingleClick, VBS User Interface Event Handlers
Multiplayer: 
Problems: 

Notes