Merge branch 'hitreactions_throwWeapon' of https://github.com/acemod/ACE3 into hitreactions_throwWeapon

This commit is contained in:
commy2 2020-01-11 19:29:49 +01:00
commit c740ffe009

View File

@ -5,13 +5,13 @@
* Unit must be local and not inside a vehicle or attached to another object.
*
* Arguments:
* 0: unit <OBJECT>
* 0: Unit <OBJECT>
*
* Return Value:
* Weapon Holder
*
* Example:
* player call ACE_hitreactions_fnc_throwWeapon
* player call ace_hitreactions_fnc_throwWeapon
*
* Public: No
*/
@ -20,6 +20,7 @@
#define THROW_TORQUE 0.2
params ["_unit"];
private _weapon = currentWeapon _unit;
if (!isNull objectParent _unit || _weapon isEqualTo "") exitWith {objNull};