Skip to main content

FB2VehicleUpdateSystem

Overview

  • Calls Entity::Tick directly to run OnTick -> all Component::Tick -> OnPostTick. Applies a distance-based interval.

Metadata

FieldValue
Kindsystem
EnvironmentB2 - Simulation
Categorysystems
ExtendsFB2Subsystem
Requirerequire('Systems.FB2VehicleUpdateSystem')

Properties (8)

NameTypeDescription
CurrentTime_Cachednumber
LastCleanupTimenumber
PendingRegistrationsany[]
PendingUnregistrationsFB1EntityId[]
RegisteredVehiclesFB2VehicleUpdateEntry[]
UpdatedVehiclesFB2Vehicle[]
VehicleIndexMaptable<FB1EntityId, integer>
bIsProcessingTickbooleanPrevents array modification during Tick processing.

Functions (3)

FunctionParametersReturnsDescription
IsRegisteredEntityId: FB1EntityIdbooleanReturns whether Registered.
TickDeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number, TickScale: number-Called after SpreadOut and before the ComponentScheduler.
UnregisterVehicleEntityId: FB1EntityId-Unregisters Vehicle.

Override points (2)

Implement these in Lua as FB2VehicleUpdateSystem.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_TickDeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number, TickScale: number-Called after SpreadOut and before the ComponentScheduler.
Override_UnregisterVehicleEntityId: FB1EntityId-Unregisters Vehicle.