2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
2017-10-01 18:38:11 +00:00
|
|
|
* Move unit to kneeling position (only if not yet prone and not underwater).
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2015-09-20 14:40:49 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2015-09-20 14:40:49 +00:00
|
|
|
* Return Value:
|
|
|
|
* None
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ace_common_fnc_goKneeling
|
|
|
|
*
|
2015-09-20 14:40:49 +00:00
|
|
|
* Public: No
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
|
|
|
|
2015-09-20 14:40:49 +00:00
|
|
|
params ["_unit"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2016-06-04 17:57:49 +00:00
|
|
|
// Animation changes even inside vehicle post-1.60
|
2024-03-26 12:54:06 +00:00
|
|
|
if (stance _unit == "PRONE" || {!isNull objectParent _unit} || {_unit call EFUNC(common,isSwimming)}) exitWith {};
|
2015-05-14 22:12:40 +00:00
|
|
|
|
2015-09-20 14:40:49 +00:00
|
|
|
[
|
|
|
|
_unit,
|
|
|
|
["AmovPknlMstpSnonWnonDnon", "AmovPknlMstpSlowWrflDnon", "AmovPknlMstpSrasWlnrDnon", "AmovPknlMstpSlowWpstDnon", "AmovPknlMstpSoptWbinDnon"] select ((["", primaryWeapon _unit, secondaryWeapon _unit, handgunWeapon _unit, binocular _unit] find currentWeapon _unit) max 0)
|
|
|
|
] call FUNC(doAnimation);
|