ACE3/addons/switchunits/functions/fnc_addMapFunction.sqf

26 lines
447 B
Plaintext
Raw Normal View History

/*
2015-01-14 01:57:15 +00:00
Name: ACE_SwitchUnits_fnc_addMapFunction
Author(s):
bux578
Description:
Adds a mapClick Eventhandler
Parameters:
0: OBJECT - unit
1: ARRAY<OBJECT> - sided
Returns:
VOID
*/
2015-01-12 14:47:22 +00:00
#include "script_component.hpp"
private ["_unit"];
_unit = _this select 0;
["theMapClick", "onMapSingleClick", {
2015-01-12 14:47:22 +00:00
[_this, _pos, _shift, _alt] call FUNC(handleMapClick);
}, [_unit, _sides]] call BIS_fnc_addStackedEventHandler;