Difference between revisions of "onMapSingleClick"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 3: Line 3:
 
[[Category:Scripting Commands ArmA|O]]
 
[[Category:Scripting Commands ArmA|O]]
  
back to [[Scripting_Reference#O|COMREF]]
 
  
 
<h2 style="color:#000066">'''onMapSingleClick ''command'''''</h2>
 
<h2 style="color:#000066">'''onMapSingleClick ''command'''''</h2>

Revision as of 12:13, 23 April 2006


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