onMapSingleClick

From Bohemia Interactive Community
Revision as of 21:23, 1 June 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


onMapSingleClick command


Operand types:

command: String

Type of returned value:

Nothing

Compatibility:

Added in version 1.85

Description:

Define action performed when user clicks in map.

Command receives:

If click is processed, command should return true.


Examples:

onMapSingleClick {"SoldierWB" createUnit [_pos, group player]; true}

onMapSingleClick {grp1 move _pos; leader grp1 sideChat "Moving"; variable1 = true; onMapSingleClick {}}