API ReferenceGE ExtensionsflowgraphnodesgameplayvehiclePool
Manage Vehicle Pool
**File:** `flowgraph/nodes/gameplay/vehiclePool/managePool.lua`
File: flowgraph/nodes/gameplay/vehiclePool/managePool.lua
Description: Sets and gets properties of a vehicle pool object.
Category: once_instant Tags: traffic, budget, pooling Dependencies: core_vehicleActivePooling
Input Pins
| Name | Type | Description |
|---|---|---|
vehPool | table | Vehicle pool object; use the Create Pool node. |
maxActive | number | Maximum amount of active vehicles in the pool; set to -1 to use max amount. Tip: Use the Activate All Vehicles node with this. |
globalPoolingMode | bool | If true, the pool will limit the amount of active vehicles in the entire scene. |
Output Pins
| Name | Type | Description |
|---|---|---|
vehicleIds | table | Table of vehicle ids. |
activeVehIds | table | Table of active vehicle ids. |
inactiveVehIds | table | Table of inactive vehicle ids. |
activeAmount | number | Amount of active vehicles in this pool. |
inactiveAmount | number | Amount of inactive vehicles in this pool. |
Methods
C:workOnce()
See Also
- Activate All Vehicles - Related reference
- Activate Vehicles By Distance - Related reference
- Activate Vehicle - Related reference
- FlowGraph Guide - Guide