Warning: file_put_contents(/ff_89336906fd793f6df16102430e31e0307945bf00ad4dba9d.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
onMapSingleClick - OFPEC Scripting Command Reference | OFPEC The Editing Center

parameters onMapSingleClick command

Operand types

parameters: Any
command: String

Type of returned value


Defines an action performed when the user clicks on the map.

Command receives:

_pos array position
_units array selected units
_shift,_alt bool key state
_this any parameters passed to this function

If the click is processed, command should return true.

Used In



"SoldierEG" onMapSingleClick "_this createUnit [_pos, group player]"