Difference between revisions of "onMapSingleClick"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 11: Line 11:
Added in version '''1.85'''

Revision as of 00:54, 17 April 2006

back to COMREF

onMapSingleClick command

Operand types:

command: String

Type of returned value:



Added in version 1.85


Define action performed when user clicks in map.

Command receives:

If click is processed, command should return true.


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

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