Skip to main content

FB2StateComponent

Overview

  • Component that manages entity state.

Metadata

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

Properties (10)

NameTypeDescription
ActiveDoodleTextureIdsstring[]
CachedCurrentStateFB2State
CachedStateHashinteger
ChannelIdstring
LastUpdateSootValuenumber
SpawnedFireIdFB1FireId
SpawnedFireSiteIdFB1EntityId
SpreadLevelinteger
SpreadOriginPosFVector
Statestable<string, FB2State>

Functions (19)

FunctionParametersReturnsDescription
ChangeChannelInChannelId: string, InInstigator: FB1EntityId-
ChangeStateInStateGroupId: string, InStateId: string, InInstigator: FB1EntityId-
ClearStateSentInfo--Clears State Sent Info.
GetCurrentChannelId-stringReturns Current Channel Id.
GetCurrentState-FB2StateReturns Current State.
GetCurrentStateGroupId-stringReturns Current State Group Id.
GetCurrentStateId-stringReturns Current State Id.
HasStateInStateGroupId: string, InStateId: stringbooleanReturns whether it has State.
IsInStateInStateGroupId: string, InStateId: stringbooleanDirectly iterates the currently held States and checks for a (StateGroupId, StateId) match, regardless of StatePriority registration.
IsSameStateInStateGroupId: string, InStateId: stringbooleanReturns whether Same State.
NotifyOwnerObjectInventory--
NotifyParentObjectInventory--
OnMontageSectionFinishedInAnimMontageName: string, InSectionName: string-Callback invoked on Montage Section Finished.
RemoveStateInStateGroupId: string, InStateId: string-Removes State.
SendCurrentStatePacketbForceSend: boolean-Sends Current State Packet.
SendInventoryUpdatePacket--Sends Inventory Update Packet.
SetSpreadOriginPosInOriginPos: FVector-Sets Spread Origin Pos.
SetSpreadStepInSpreadLevel: integer-Sets Spread Step.
UpdateSootValueInitialState--Updates Soot Value Initial State.

Override points (11)

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

FunctionParametersReturnsDescription
Override_ChangeChannelInChannelId: string, InInstigator: FB1EntityId-
Override_ChangeStateInStateGroupId: string, InStateId: string, InInstigator: FB1EntityId-
Override_HasStateInStateGroupId: string, InStateId: stringbooleanReturns whether it has State.
Override_IsInStateInStateGroupId: string, InStateId: stringbooleanDirectly iterates the currently held States and checks for a (StateGroupId, StateId) match, regardless of StatePriority registration.
Override_NotifyOwnerObjectInventory--
Override_NotifyParentObjectInventory--
Override_OnMontageSectionFinishedInAnimMontageName: string, InSectionName: string-Callback invoked on Montage Section Finished.
Override_RemoveStateInStateGroupId: string, InStateId: string-Removes State.
Override_SendCurrentStatePacketbForceSend: boolean-Sends Current State Packet.
Override_SendInventoryUpdatePacket--Sends Inventory Update Packet.
Override_UpdateSootValueInitialState--Updates Soot Value Initial State.