2015-01-11 19:32:51 +00:00
|
|
|
// by commy2
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 19:32:51 +00:00
|
|
|
|
|
|
|
private ["_unit", "_message"];
|
|
|
|
|
|
|
|
_tapper = _this select 0;
|
|
|
|
_target = _this select 1;
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
if (_target != ACE_player) exitWith {
|
2015-01-11 19:32:51 +00:00
|
|
|
addCamShake [4, 0.5, 5];
|
|
|
|
if !(local _target) then {
|
2015-01-11 23:13:47 +00:00
|
|
|
[[_tapper, _target], QUOTE(FUNC(tapShoulder)), _target] call EFUNC(execRemoteFnc);
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
addCamShake [4, 0.5, 5];
|
|
|
|
|
2015-01-13 05:14:27 +00:00
|
|
|
//_message = format ["%1 tapped you on your shoulder.", [_unit] call EFUNC(common,getName)];
|
2015-01-12 04:20:02 +00:00
|
|
|
_message = localize "STR_ACE_Interaction_YouWereTapped";
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-01-13 05:14:27 +00:00
|
|
|
[_message] call EFUNC(common,displayTextStructured);
|