2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-09-19 21:18:07 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Force a unit to go prone
|
2015-01-16 23:21:47 +00:00
|
|
|
*
|
2015-09-19 21:18:07 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ace_common_fnc_setProne
|
|
|
|
*
|
2015-09-19 21:18:07 +00:00
|
|
|
* Public: Yes
|
2015-01-16 23:21:47 +00:00
|
|
|
*/
|
|
|
|
|
2015-09-19 21:18:07 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
|
|
|
[
|
|
|
|
_unit,
|
|
|
|
["amovppnemstpsnonwnondnon", "amovppnemstpsraswrfldnon", "amovppnemstpsraswlnrdnon", "amovppnemstpsraswpstdnon"] select (([primaryWeapon _unit, secondaryWeapon _unit, handgunWeapon _unit] find currentWeapon _unit) + 1)
|
2016-06-20 18:58:37 +00:00
|
|
|
] call FUNC(doAnimation);
|