onMapSingleClick

From Bohemia Interactive Community
Revision as of 18:52, 15 April 2006 by Hoz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

onMapSingleClick command

Operand types:

command: String

Type of returned value:

Nothing

Description:

Define action performed when user clicks in map. Command receives:

_pos Array position _units Array selected units _shift, _alt Boolean key state

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

Comments