2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-07-12 14:16:01 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Play a gesture.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
* 1: Animation <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player, "gestureGo"] call ace_common_fnc_doGesture
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-07-13 09:00:31 +00:00
|
|
|
params ["_unit", "_animation", ["_priority", 0]];
|
|
|
|
TRACE_3("params",_unit,_animation,_priority);
|
2016-07-12 14:16:01 +00:00
|
|
|
|
2016-07-13 09:00:31 +00:00
|
|
|
if (!GVAR(isReloading) || {_priority > 0}) then {
|
2016-07-12 14:16:01 +00:00
|
|
|
[QGVAR(playActionNow), [_unit, _animation], _unit] call CBA_fnc_targetEvent;
|
|
|
|
};
|