API ReferenceGE Extensionsflowgraphnodesgameplaysites
Locations by Tags
**File:** `flowgraph/nodes/gameplay/sites/locationsByTag.lua`
File: flowgraph/nodes/gameplay/sites/locationsByTag.lua
Description: Finds a maximum number of locations that have a certain tag and are a min/max distance away.
Category: once_instant Tags: scenario, sites
Input Pins
| Name | Type | Description |
|---|---|---|
sitesData | table | Sites Data. |
tag | string | name of the tag |
pos | vec3 | Position to search from if distance is used. |
minDist | number | minimum Distance of nodes. -1 for no miminum. |
maxDist | number | max Distance of nodes. -1 for no maximum. |
amount | number | max number of locations to find. -1 for max. |
Output Pins
| Name | Type | Description |
|---|---|---|
count | number | How many locations are actually found. |
found_1 | flow | If a location has been found. |
loc_1 | table | Location Data. |
Methods
C:init(mgr, ...)C:drawCustomProperties()C:updatePins(old, new)C:workOnce()C:_onSerialize(res)C:_onDeserialized(res)
See Also
- File Sites - Related reference
- Location - Related reference
- Location by Name - Related reference
- FlowGraph Guide - Guide