ACE3/addons/common/functions/fnc_setProne.sqf

23 lines
522 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
*
* Public: Yes
2015-09-19 22:55:58 +00:00
*
* Note: Not functional, because FUNC(localAnim) does no longer exist
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(localAnim);