API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Move Vehicle Group
**File:** `flowgraph/nodes/gameplay/traffic/trafficMoveGroup.lua`
File: flowgraph/nodes/gameplay/traffic/trafficMoveGroup.lua
Description: Moves all vehicles in a vehicle group to a new position, rotation, and formation.
Tags: spawn, respawn, teleport, vehicle, group, traffic, multispawn
Data Fields
| Field | Default |
|---|---|
self.data.instantTeleport | false |
Input Pins
| Name | Type | Description |
|---|---|---|
flow | flow | |
reset | flow | |
vehicleIds | table | Table of vehicle ids. |
shuffle | bool | If true, randomize the order of the group array. |
spawnMode | string | Spawn mode; see Node Properties for list. |
spawnGap | number | Distance between vehicle spawn points. |
startPos | vec3 | (Optional) Position for group formation. |
startRot | quat | (Optional) Rotation for group formation. |
Output Pins
| Name | Type | Description |
|---|---|---|
flow | flow | |
moved | flow | Flows when the vehicle group is teleported. |
Methods
C:init()C:_executionStopped()C:onNodeReset()C:postInit()C:onVehicleGroupRespawned(vehIds)C:work()
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide