2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-05-09 02:47:15 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Taps a shoulder
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-28 15:11:53 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2015-05-09 02:47:15 +00:00
|
|
|
* 1: Target <OBJECT>
|
2015-09-28 15:11:53 +00:00
|
|
|
* 2: Shoulder which was tapped [0: left, 1: right] <NUMBER>
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
2015-09-28 16:06:25 +00:00
|
|
|
* Return Value:
|
2015-05-09 02:47:15 +00:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2015-09-28 15:11:53 +00:00
|
|
|
* [player, target, 0] call ace_interaction_fnc_tapShoulder
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-09-28 15:11:53 +00:00
|
|
|
params ["_unit", "_target", "_shoulderNum"];
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-09-28 15:11:53 +00:00
|
|
|
if (_unit == ACE_player) then {
|
2015-02-19 22:45:46 +00:00
|
|
|
addCamShake [4, 0.5, 5];
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
2016-10-20 21:44:34 +00:00
|
|
|
[_unit, "gesturePoint"] call EFUNC(common,doGesture);
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2016-05-25 18:23:53 +00:00
|
|
|
[QGVAR(tapShoulder), [_target, _shoulderNum], [_target]] call CBA_fnc_targetEvent;
|