ACE3/addons/common/functions/fnc_fixLoweredRifleAnimation.sqf

23 lines
513 B
Plaintext
Raw Normal View History

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