ACE3/addons/interaction/functions/fnc_tapShoulder.sqf

29 lines
544 B
Plaintext
Raw Normal View History

/*
* Author: commy2
* Taps a shoulder
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Target <OBJECT>
* 2: Shoulder which was tapped [0: left, 1: right] <NUMBER>
*
2015-09-28 16:06:25 +00:00
* Return Value:
* None
*
* Example:
* [player, target, 0] call ace_interaction_fnc_tapShoulder
*
* Public: No
*/
2015-01-11 23:13:47 +00:00
#include "script_component.hpp"
2015-01-11 19:32:51 +00:00
params ["_unit", "_target", "_shoulderNum"];
2015-01-11 19:32:51 +00:00
if (_unit == ACE_player) then {
addCamShake [4, 0.5, 5];
2015-01-11 19:32:51 +00:00
};
_unit playActionNow "PutDown";
2015-01-11 19:32:51 +00:00
["tapShoulder", [_target], [_target, _shoulderNum]] call EFUNC(common,targetEvent);