onMapSingleClick: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 37: Line 37:
'''onMapSingleClick''' {"SoldierWB" [[createUnit]] [_pos, [[group]] [[player]]]; [[true]]}
'''onMapSingleClick''' {"SoldierWB" [[createUnit]] [_pos, [[group]] [[player]]]; [[true]]}


'''onMapSingleClick''' {grp1 [[move]] _pos; [[leader]] grp1 [[sidechat]] "Moving"; variable1 = [[true]]; '''onMapSingleClick''' {}}
'''onMapSingleClick''' {grp1 [[move]] _pos; [[leader]] grp1 [[sideChat]] "Moving"; variable1 = [[true]]; '''onMapSingleClick''' {}}

Revision as of 15:29, 21 April 2006


back to COMREF

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 {}}