Difference between revisions of "onMapSingleClick"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
(override explained for arma 3)
Line 23: Line 23:
 
* _alt: [[Boolean]] - Whether <Alt> was pressed when clicking on the map
 
* _alt: [[Boolean]] - Whether <Alt> was pressed when clicking on the map
  
When click is processed, code should ultimately return [[true]] back to the engine. If [[false]] is returned, default processing by the game engine is done. Return value of any other type (including [[Nothing]]) is an error. In such case default processing by the game engine is done, and error message may be displayed.
+
In Arma 3 the code should return [[true]] if you wish to override default engine handling of the mouse click on map (see example #4).<br><br> For older games, when click is processed, code should ultimately return [[true]] back to the engine. If [[false]] is returned, default processing by the game engine is done. Return value of any other type (including [[Nothing]]) is an error. In such case default processing by the game engine is done, and error message may be displayed.
  
 
The code is executed on every click, until the '''Command''' is  
 
The code is executed on every click, until the '''Command''' is  

Revision as of 12:04, 29 June 2014

Template:Command

Notes

Posted on 8 July, 2009
General Barron
See my Multiple OnMapSingleClick script to allow you to add multiple events to the onMapSingleClick event. Some minor editing of the scripts would be required to use them in Arma.

Notes