mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
init
This commit is contained in:
23
addons/switchunits/functions/fnc_addMapFunction.sqf
Normal file
23
addons/switchunits/functions/fnc_addMapFunction.sqf
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Name: AGM_SwitchUnits_fnc_addMapFunction
|
||||
|
||||
Author(s):
|
||||
bux578
|
||||
|
||||
Description:
|
||||
Adds a mapClick Eventhandler
|
||||
|
||||
Parameters:
|
||||
0: OBJECT - unit
|
||||
1: ARRAY<OBJECT> - sided
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
["theMapClick", "onMapSingleClick", {
|
||||
[_this, _pos, _shift, _alt] call AGM_SwitchUnits_fnc_handleMapClick;
|
||||
}, [_unit, _sides]] call BIS_fnc_addStackedEventHandler;
|
Reference in New Issue
Block a user