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
|
|
|
|
2015-02-19 22:45:46 +00:00
|
|
|
EXPLODE_3_PVT(_this,_tapper,_target,_shoulderNum);
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
if (_target != ACE_player) exitWith {
|
2015-02-19 22:45:46 +00:00
|
|
|
addCamShake [4, 0.5, 5];
|
|
|
|
ACE_player playActionNow 'gestureAdvance';
|
|
|
|
if !(local _target) then {
|
|
|
|
[[_tapper, _target, _shoulderNum], QUOTE(DFUNC(tapShoulder)), _target] call EFUNC(common,execRemoteFnc);
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
addCamShake [4, 0.5, 5];
|
|
|
|
|
2015-02-19 22:45:46 +00:00
|
|
|
if (_shoulderNum == 0) then {
|
|
|
|
_message = localize "STR_ACE_Interaction_YouWereTappedRight";
|
|
|
|
} else {
|
|
|
|
_message = localize "STR_ACE_Interaction_YouWereTappedLeft";
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-01-13 05:14:27 +00:00
|
|
|
[_message] call EFUNC(common,displayTextStructured);
|