ACE3/addons/interaction/functions/fnc_tapShoulder.sqf

22 lines
558 B
Plaintext
Raw Normal View History

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;
if (_target != ACE_player) exitWith {
2015-01-11 19:32:51 +00:00
addCamShake [4, 0.5, 5];
if !(local _target) then {
2015-01-13 15:38:21 +00:00
[[_tapper, _target], QUOTE(FUNC(tapShoulder)), _target] call EFUNC(common,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)];
_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);