Difference between revisions of "onMapSingleClick"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 1: Line 1:
[[Category:Scripting Commands]]
+
[[Category:Scripting Commands|O]]
[[Category:Scripting Commands OFP 1.97]]
+
[[Category:Scripting Commands OFP 1.97|O]]
[[Category:Scripting Commands ArmA]]
+
[[Category:Scripting Commands ArmA|O]]
  
 
back to [[Scripting_Reference#O|COMREF]]
 
back to [[Scripting_Reference#O|COMREF]]

Revision as of 19:46, 22 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 {}}