Skip to main content

FB2Action_WaitForAsyncLoad

Overview

  • Action automatically added when AsyncLoad is used.

Metadata

FieldValue
Kindaction
EnvironmentB2 - Simulation
Categoryactions
ExtendsFB2Action_Base
Requirerequire('Actions.B2Action_WaitForAsyncLoad')

Properties (3)

NameTypeDescription
AsyncLoadIdFB1AsyncLoadIdid of the async load being waited on, set externally via SetAsyncLoadId() and matched in OnFinishAsyncLoad()
CoopSchedulerIdFB1EntityIdid of the coop scheduler this wait belongs to, set externally via SetCoopSchedulerId() and used to check/notify the shared coop pending-load state
IsNeedCoopPendingAsyncLoadbooleanwhether the coop scheduler requires waiting for its shared pending-load signal before finishing, computed in InitializeSetting()

Functions (7)

FunctionParametersReturnsDescription
OnCanceled--Callback invoked on Canceled.
OnFinish--Callback invoked on Finish.
OnPaused--Callback invoked on Paused.
OnPlay--Callback invoked on Play.
OnTickDeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number-Callback invoked on Tick.
SetAsyncLoadIdInAsyncLoadId: FB1AsyncLoadId-Sets Async Load Id.
SetCoopSchedulerIdInCoopSchedulerId: FB1EntityId-Sets Coop Scheduler Id.

Override points (5)

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

FunctionParametersReturnsDescription
Override_OnCanceled--Timing hook called when the action is canceled.
Override_OnFinish--Timing hook called when the action finishes.
Override_OnPaused--Timing hook called when the action is paused.
Override_OnPlay--Timing hook called when the action starts (play). Override in Lua to replace the start behavior.
Override_OnTickDeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number-Timing hook called every tick while the action runs. (performance-sensitive)