Update ExileServer_object_tree_database_load.sqf

Fixed tree not found x'D
This commit is contained in:
DoubleRepo 2017-12-27 14:31:06 +01:00 committed by GitHub
parent e87c18a5bb
commit f1f8974b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,7 @@ private["_treeID", "_data", "_position", "_Tree", "_SelectTree"];
_treeID = _this; _treeID = _this;
_data = format ["loadTree:%1", _treeID] call ExileServer_system_database_query_selectSingle; _data = format ["loadTree:%1", _treeID] call ExileServer_system_database_query_selectSingle;
_position = [_data select 0, _data select 1, _data select 2]; _position = [_data select 0, _data select 1, _data select 2];
_Tree = nearestTerrainObjects [_position, ["Tree"], 5]; (nearestTerrainObjects [_position, [], 1, false, true]) params [["_tree", objNull, [objNull]]];
_SelectTree = _Tree select 0; diag_log format ["Hiding Tree %1", _tree];
diag_log format ["Hiding Tree @ %1", _SelectTree]; _tree hideObjectGlobal true;
_SelectTree hideObjectGlobal true; true
true