mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
@ -16,12 +16,9 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
params ["_unit", "_sides"];
|
||||
|
||||
["theMapClick", "onMapSingleClick", {
|
||||
// IGNORE_PRIVATE_WARNING(_pos,_shift,_alt)
|
||||
addMissionEventHandler ["MapSingleClick", {
|
||||
params ["", "_pos"];
|
||||
if (alive ACE_player && {GVAR(OriginalUnit) getVariable ["ACE_CanSwitchUnits", false]}) then {
|
||||
[_this, _pos, _shift, _alt] call FUNC(handleMapClick);
|
||||
[GVAR(switchableSides), _pos] call FUNC(handleMapClick);
|
||||
};
|
||||
|
||||
}, [_unit, _sides]] call BIS_fnc_addStackedEventHandler;
|
||||
}];
|
||||
|
Reference in New Issue
Block a user