ACE3/addons/common/functions/fnc_setProne.sqf

24 lines
504 B
Plaintext
Raw Normal View History

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
*
* 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
*/
#include "script_component.hpp"
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)
] call FUNC(doAnimation);