2015-02-14 04:09:29 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Fixes the lowered rifle animation
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [_player] call ace_common_fnc_fixLoweredRifleAnimation
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-02-14 04:09:29 +00:00
|
|
|
PARAMS_1(_unit);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-02-14 04:09:29 +00:00
|
|
|
if (currentWeapon _unit != "" && {currentWeapon _unit == primaryWeapon _unit} && {weaponLowered _unit} && {stance _unit == "STAND"} && {(vehicle _unit) == _unit}) then {
|
2015-01-11 18:20:14 +00:00
|
|
|
[_unit, "amovpercmstpsraswrfldnon", 0] call FUNC(doAnimation);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|