Update addons/cargo/functions/fnc_handleDestroyed.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
Drofseh 2024-05-27 18:35:12 -07:00 committed by GitHub
parent dafb05545d
commit db8edd6217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ if (_loaded isNotEqualTo []) then {
if (_x isEqualType objNull) then { if (_x isEqualType objNull) then {
private _delete = true; private _delete = true;
if (_killed && {random 100 < GVAR(unloadOnKilled)}) then { if (_killed && {random 1 < GVAR(unloadOnKilled)}) then {
_delete = !([_x, _object] call ace_cargo_fnc_unloadItem); // If a safe position to unload cannot be found fnc_unloadItem returns false, delete cargo instead _delete = !([_x, _object] call ace_cargo_fnc_unloadItem); // If a safe position to unload cannot be found fnc_unloadItem returns false, delete cargo instead
}; };