ACE3/addons/common/functions/fnc_dropWeapon_f.sqf

39 lines
940 B
Plaintext
Raw Normal View History

2015-01-16 23:21:47 +00:00
/**
* fn_dropWeapon_f.sqf
* @Descr: N/A
* @Author: Glowbal
*
* @Arguments: []
* @Return:
* @PublicAPI: false
*/
#include "script_component.hpp"
private ["_unit","_currentWeapon","_currentAnimation", "_WeaponHolder"];
_unit = [_this, 0, ObjNull,[ObjNull]] call BIS_fnc_Param;
_currentWeapon = currentWeapon _unit;
_currentAnimation = animationState _unit;
_WeaponHolder = "GroundWeaponHolder" createVehicle position _unit;
_unit removeWeapon _currentWeapon;
_weaponHolder addWeaponCargoGlobal [_currentWeapon, 1];
//_unit action [ "DropWeapon", _WeaponHolder, _currentWeapon ];
_WeaponHolder setPos (getPos _unit);
//_unit switchMove _currentAnimation;
_primairyWeapon = primaryWeapon _unit;
_secondairyWeapon = secondaryWeapon _unit;
_handGunWeapon = handgunWeapon _unit;
switch (_currentWeapon) do {
2015-01-18 19:09:19 +00:00
case _primairyWeapon: {
2015-01-16 23:21:47 +00:00
2015-01-18 19:09:19 +00:00
};
case _secondairyWeapon: {
2015-01-16 23:21:47 +00:00
2015-01-18 19:09:19 +00:00
};
case _handGunWeapon: {
2015-01-16 23:21:47 +00:00
2015-01-18 19:09:19 +00:00
};
default {};
2015-01-16 23:21:47 +00:00
};