Skip to main content

FB2CoopComponent

Overview

  • Component that manages co-op interactions.

Metadata

FieldValue
Kindcomponent
EnvironmentB2 - Simulation
Categorycomponents
ExtendsFB2Component
Requirerequire('Components.B2CoopComponent')

Properties (4)

NameTypeDescription
ConnectedSchedulerIdFB1EntityId
bCoopPlayerReadyboolean
bCoopProceedboolean
bPlayingCoopboolean

Functions (18)

FunctionParametersReturnsDescription
GetConnectedSchedulerId-FB1EntityIdReturns Connected Scheduler Id.
GetContextVoiceResourceId-stringReturns Context Voice Resource Id.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetPlayingCoopType-EB1CoopTypeReturns Playing Coop Type.
IsCoopPlayerReady-booleanReturns whether Coop Player Ready.
IsCoopProceed-booleanReturns whether Coop Proceed.
IsPlayingCoop-booleanReturns whether Playing Coop.
OnAsyncLoadFinishedInSchedulerId: FB1EntityId-Callback invoked on Async Load Finished.
OnEndCoop--Callback invoked on End Coop.
OnEndCoopInteractionInParam: FB2OnEndCoopInteractionParam-Callback invoked on End Coop Interaction.
OnFinishedActionContext--Callback invoked on Finished Action Context.
OnLeaveZoiGroup--Callback invoked on Leave Zoi Group.
OnStartCoopInSchedulerId: FB1EntityId-Callback invoked on Start Coop.
RequestCancelCurrentCoopInCoopResult: EB1CoopResult-Requests Cancel Current Coop.
ResetActionContexts--Resets Action Contexts.
SetCoopPlayerReadyInReady: boolean-Sets Coop Player Ready.
SetCoopProceedInReady: boolean-Sets Coop Proceed.
SetPlayingCoopInValue: boolean-Sets Playing Coop.

Override points (7)

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

FunctionParametersReturnsDescription
Override_OnAsyncLoadFinishedInSchedulerId: FB1EntityId-Callback invoked on Async Load Finished.
Override_OnEndCoop--Callback invoked on End Coop.
Override_OnFinishedActionContext--Callback invoked on Finished Action Context.
Override_OnLeaveZoiGroup--Callback invoked on Leave Zoi Group.
Override_OnStartCoopInSchedulerId: FB1EntityId-Callback invoked on Start Coop.
Override_RequestCancelCurrentCoopInCoopResult: EB1CoopResult-Requests Cancel Current Coop.
Override_ResetActionContexts--Resets Action Contexts.