2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* The unit will put its current weapon away.
|
|
|
|
*
|
2015-08-08 12:40:23 +00:00
|
|
|
* Arguments:
|
2015-08-04 01:08:21 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2015-08-08 12:40:23 +00:00
|
|
|
* Return Value:
|
2015-08-04 01:08:21 +00:00
|
|
|
* None
|
2015-08-08 12:40:23 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player] call ace_weaponselect_fnc_putWeaponAway
|
|
|
|
*
|
2015-09-27 12:55:36 +00:00
|
|
|
* Public: Yes
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-17 17:26:51 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-08-04 01:08:21 +00:00
|
|
|
params ["_unit"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-17 17:26:51 +00:00
|
|
|
[_unit] call EFUNC(common,fixLoweredRifleAnimation);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-17 17:26:51 +00:00
|
|
|
_unit action ["SwitchWeapon", _unit, _unit, 99];
|