FindVertical
Controls the vertical search radius (Z-axis, in tiles) for ground searches performed by FindType, FindTypeEx, FindTypesArrayEx, and related methods.
Default value: 2. Maximum effective value: 120 — values above 120 are clamped.
Only affects searches with Ground ($FFFFFFFF) as the container.
In Python, use GetFindVertical() / SetFindVertical(value).
Задаёт вертикальный радиус поиска (ось Z, в тайлах) для поиска на земле методами FindType, FindTypeEx, FindTypesArrayEx и связанными.
Значение по умолчанию: 2. Максимальное значение: 120 — значения выше 120 обрезаются.
Влияет только на поиск с контейнером Ground ($FFFFFFFF).
В Python используйте GetFindVertical() / SetFindVertical(value).
var FindVertical: Cardinal;
def GetFindVertical() -> int: ...
def SetFindVertical(Value: int) -> None: ...
begin
FindVertical := 30;
FindDistance := 10;
if FindTypeEx($FFFF, $FFFF, Ground, False) > 0 then
AddToSystemJournal('Found items in wide Z-range');
FindVertical := 2;
FindDistance := 2;
end.
SetFindVertical(30)
SetFindDistance(10)
if FindTypeEx(0xFFFF, 0xFFFF, Ground(), False) > 0:
AddToSystemJournal('Found items in wide Z-range')
SetFindVertical(2)
SetFindDistance(2)