API ReferenceGE ExtensionsflowgraphnodesgameplayvehiclePool
Activate Vehicles By Distance
**File:** `flowgraph/nodes/gameplay/vehiclePool/activateByDistance.lua`
File: flowgraph/nodes/gameplay/vehiclePool/activateByDistance.lua
Description: Activates or deactivates all vehicles in the pool based on distance to a given point.
Category: repeat_instant Tags: traffic, budget, pooling Dependencies: core_vehicleActivePooling
Input Pins
| Name | Type | Description |
|---|---|---|
vehPool | table | Vehicle pool object; use the Create Pool node. |
pos | vec3 | Focus position; if none given, uses the camera position. |
distance | number | Maximum distance to keep vehicles activated. |
Methods
C:work()
See Also
- Activate All Vehicles - Related reference
- Activate Vehicle - Related reference
- Add Vehicle Group To Pool - Related reference
- FlowGraph Guide - Guide