ACE3/addons/common/functions/fnc_doGesture.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
488 B
Plaintext

#include "..\script_component.hpp"
/*
* 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
*/
params ["_unit", "_animation", ["_priority", 0]];
TRACE_3("params",_unit,_animation,_priority);
if (!GVAR(isReloading) || {_priority > 0}) then {
[QGVAR(playActionNow), [_unit, _animation], _unit] call CBA_fnc_targetEvent;
};