mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3984 from acemod/fixLoadoutWhenNull
Handle "loadout" changed event when player is null
This commit is contained in:
commit
3aebbdd269
@ -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 select 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"]);
|
||||
|
Loading…
Reference in New Issue
Block a user