mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
29 lines
569 B
Plaintext
29 lines
569 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Taps a shoulder
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Target <OBJECT>
|
|
* 2: Shoulder which was tapped [0: left, 1: right] <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player, target, 0] call ace_interaction_fnc_tapShoulder
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_unit", "_target", "_shoulderNum"];
|
|
|
|
if (_unit == ACE_player) then {
|
|
addCamShake [4, 0.5, 5];
|
|
};
|
|
|
|
[_unit, "gesturePoint"] call EFUNC(common,doGesture);
|
|
|
|
[QGVAR(tapShoulder), [_target, _shoulderNum], [_target]] call CBA_fnc_targetEvent;
|