2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
* The unit will put its current weapon away.
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: What unit should put the current weapon on back? (Object)
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* None.
|
|
|
|
*/
|
2015-01-17 17:26:51 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-17 17:26:51 +00:00
|
|
|
private "_unit";
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-17 17:26:51 +00:00
|
|
|
_unit = _this select 0;
|
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];
|