2015-01-16 23:21:47 +00:00
|
|
|
/**
|
|
|
|
* fn_setProne.sqf
|
|
|
|
* @Descr: Force a unit to go prone
|
|
|
|
* @Author: Glowbal
|
|
|
|
*
|
|
|
|
* @Arguments: [unit OBJECT]
|
|
|
|
* @Return: void
|
|
|
|
* @PublicAPI: true
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
private ["_unit"];
|
|
|
|
_unit = [_this,0, ObjNull,[ObjNull]] call BIS_fnc_Param;
|
|
|
|
switch (currentWeapon _unit) do {
|
2015-01-18 19:09:19 +00:00
|
|
|
case (primaryWeapon _unit): {
|
|
|
|
[_unit,"amovppnemstpsraswrfldnon"] call FUNC(localAnim);
|
|
|
|
};
|
|
|
|
case (secondaryWeapon _unit): {
|
|
|
|
[_unit,"amovppnemstpsraswlnrdnon"] call FUNC(localAnim);
|
|
|
|
};
|
|
|
|
case (handgunWeapon _unit): {
|
|
|
|
[_unit,"AmovPpneMstpSrasWpstDnon"] call FUNC(localAnim);
|
|
|
|
};
|
|
|
|
default {
|
|
|
|
[_unit,"amovppnemstpsnonwnondnon"] call FUNC(localAnim);
|
|
|
|
};
|
2015-01-16 23:21:47 +00:00
|
|
|
};
|