2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2020-10-21 16:17:42 +00:00
|
|
|
/*
|
2023-08-17 10:02:17 +00:00
|
|
|
* Author: kymckay, joko
|
2020-10-21 16:17:42 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_interaction_fnc_onRemoteControl
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
private _units = curatorSelected select 0;
|
|
|
|
private _index = _units findIf {
|
|
|
|
(side _x) in [east, west, resistance, civilian]
|
|
|
|
&& !(isPlayer _x)
|
|
|
|
};
|
|
|
|
private _unit = _units param [_index, objNull];
|
|
|
|
bis_fnc_curatorObjectPlaced_mouseOver = ["OBJECT", _unit];
|
|
|
|
private _rc = (group _target) createUnit ["ModuleRemoteControl_F", [0,0,0], [], 0, "NONE"];
|
|
|
|
_rc setVariable ["BIS_fnc_initModules_disableAutoActivation", false];
|