Update fn_isSheltered.sqf

This commit is contained in:
A Man
2022-05-20 15:34:47 +02:00
parent 3e884a8140
commit 61ef937d83

View File

@@ -20,10 +20,14 @@ local _deepScan = {
scopeName "exit";
for "_n" from _nearest to 0 step -1 do {
local _object = _objects select _n;
local _model = _object call fn_getModelName;
local _object = _objects select _n;
if (!(_object isKindOf "AllVehicles") && {!(_model in DZE_allTrees)}) then { // not vehicles or trees
call {
if (_object isKindOf "AllVehicles") exitWith {}; // exclude vehicles, zombies and other players
local _model = _object call fn_getModelName;
if (_model in DZE_allTrees) exitWith {}; // exclude trees
///////////////////////////////////////////////////////////////////////////
//