1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00
ACE3/addons/common/functions/fnc_setProne.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes ()
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
507 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Force a unit to go prone
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bob] call ace_common_fnc_setProne
*
* Public: Yes
*/
params ["_unit"];
[
_unit,
["amovppnemstpsnonwnondnon", "amovppnemstpsraswrfldnon", "amovppnemstpsraswlnrdnon", "amovppnemstpsraswpstdnon"] select (([primaryWeapon _unit, secondaryWeapon _unit, handgunWeapon _unit] find currentWeapon _unit) + 1)
] call FUNC(doAnimation);