Merge pull request #3987 from acemod/use-backpack-command

Change use backpack command for backpack classname
This commit is contained in:
commy2 2016-06-25 12:23:58 +02:00 committed by GitHub
commit f2a9a5c058

View File

@ -7,7 +7,6 @@
*
* Return Value:
* 0: Unit
* 1: getAllGear-Array
*
* Example:
* None
@ -16,8 +15,8 @@
*/
#include "script_component.hpp"
params ["_unit", "_gear"];
private _backpack = _gear param [6, ""];
params ["_unit"];
private _backpack = backpack _unit;
if ((vehicle _unit) isKindOf "ParachuteBase" && {backpack _unit == ""} && {!(_unit getVariable [QGVAR(chuteIsCut),false])} && {_unit getVariable [QGVAR(hasReserve),false]}) then {
_unit addBackpackGlobal (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]);