DLib/functions/Util/fn_holsterWeapon.sqf
2020-01-15 19:18:38 +01:00

18 lines
294 B
Plaintext

/*
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];
}