FB2VehicleUpdateSystem
Overview
- Calls Entity::Tick directly to run OnTick -> all Component::Tick -> OnPostTick. Applies a distance-based interval.
Metadata
| Field | Value |
|---|---|
| Kind | system |
| Environment | B2 - Simulation |
| Category | systems |
| Extends | FB2Subsystem |
| Require | require('Systems.FB2VehicleUpdateSystem') |
Properties (8)
| Name | Type | Description |
|---|---|---|
CurrentTime_Cached | number | |
LastCleanupTime | number | |
PendingRegistrations | any[] | |
PendingUnregistrations | FB1EntityId[] | |
RegisteredVehicles | FB2VehicleUpdateEntry[] | |
UpdatedVehicles | FB2Vehicle[] | |
VehicleIndexMap | table<FB1EntityId, integer> | |
bIsProcessingTick | boolean | Prevents array modification during Tick processing. |
Functions (3)
| Function | Parameters | Returns | Description |
|---|---|---|---|
IsRegistered | EntityId: FB1EntityId | boolean | Returns whether Registered. |
Tick | DeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number, TickScale: number | - | Called after SpreadOut and before the ComponentScheduler. |
UnregisterVehicle | EntityId: FB1EntityId | - | Unregisters Vehicle. |
Override points (2)
Implement these in Lua as FB2VehicleUpdateSystem.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_Tick | DeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number, TickScale: number | - | Called after SpreadOut and before the ComponentScheduler. |
Override_UnregisterVehicle | EntityId: FB1EntityId | - | Unregisters Vehicle. |