Condition_NearestCityGraphPointDistance
Description
Checks whether the distance between the BaseObject character and the nearest city graph point
of the specified category is within the threshold defined by F1. F1 is also used as the search
radius when querying the city graph, so it must be greater than 0.
Parameters
| Parameter | Description |
|---|
| BaseObject | The character whose position is used as the query origin (Self or Target) |
| CompareType | Equal: distance is within F1; NotEqual is not supported (returns false if no point is found) |
| S1 | City graph category to search (e.g., Spawn, Commerce, Residential, Industrial, Service) |
| F1 | Distance threshold in Unreal units; must be greater than 0. Also used as the search radius. |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 |
|---|
| Is self within 1000 units of a Spawn point? | Self | NearestCityGraphPointDistance | Equal | Spawn | 1000 |
| Is self within 500 units of a Commerce zone? | Self | NearestCityGraphPointDistance | Equal | Commerce | 500 |
| Is target within 800 units of a Residential area? | Target | NearestCityGraphPointDistance | Equal | Residential | 800 |