DLib/functions/Util/fn_holsterWeapon.sqf

18 lines
294 B
Plaintext
Raw Normal View History

2020-01-15 18:18:38 +00:00
/*
Author: Djeeberjr
Description:
Holsters the weapons for a unit.
Parameter(s):
0: OBJECT - the unit
*/
params ["_unit"];
if(DLib_isInit) then{
[_unit,{_this action ["SwitchWeapon", _this,_this,-1];}] call DLib_fnc_runPost;
}else{
_unit action ["SwitchWeapon", _unit,_unit,-1];
}