Warning: file_put_contents(/ff_6abe3c0131af6a95b964891b3f64a9e935ad574170afaba5.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

Description

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

Arma2

Example

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

Advertisement