ACE3/addons/interaction/functions/fnc_doRemoteControl.sqf
Joko 153644b77a
Reload/Interaction - Fix 2 hemtt ingame errors (#7924)
* fix 2 hemtt ingame errors

* Extract broken calls to function

* Update addons/interaction/functions/fnc_doRemoteControl.sqf

Co-authored-by: Dystopian <sddex@ya.ru>

Co-authored-by: Dystopian <sddex@ya.ru>
2020-10-21 11:17:42 -05:00

26 lines
620 B
Plaintext

#include "script_component.hpp"
/*
* Author: SilentSpike, joko
*
* 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];