mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update addons/cargo/functions/fnc_handleDestroyed.sqf
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
dafb05545d
commit
db8edd6217
@ -31,7 +31,7 @@ if (_loaded isNotEqualTo []) then {
|
||||
if (_x isEqualType objNull) then {
|
||||
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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user