Skip to main content

FB2LifeComponent

Overview

  • Component that manages life (life stages, death, etc.).

Metadata

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

Properties (19)

NameTypeDescription
AccumulatedTicknumber
AscendingTicksintegerGhost ascension management.
BoundSiteTypeEB1SiteTypeThe type of the ghost's HomeSite before death.
CachedMarriageInteractionBagstring
CachedSocialEventSettingParamFB1SiteEventSettingParam
ConfirmedDeathTriggerIdstring
IsTriggeredboolean
LastTriggerIdstring
LifeTriggerMaptable<string, FB1LifeTriggerDetailData>
PendingRagdollDeathLifeTriggerIdstring
bAttendedOwnFuneralboolean
bCanGhostboolean
bDeathStartedWithPossessedCharacterboolean
bForceCanMarryboolean
bHasDeathStartedWithPossessedCharacterboolean
bInvincibleboolean
bPendingTeleportToHomeAfterInteractionboolean
bPendingTravelDeathboolean
bShouldCheckAscensionboolean

Functions (34)

FunctionParametersReturnsDescription
AddLifeTriggerInLifeTriggerId: string-Adds Life Trigger.
AddLifeTriggerImmediateInLifeTriggerId: string-Adds Life Trigger Immediate.
CanMarryInTargetEntityId: FB1EntityId, InCheckByAutonomy: booleanbooleanmarriage
CheckLifeTrigger--Checks Life Trigger.
ClearAscendingInfo--Clears Ascending Info.
ClearLifeTriggerInteractionData--Clears Life Trigger Interaction Data.
FinishDivorceInTargetEntityId: FB1EntityId-
FinishMarriageInTargetEntityId: FB1EntityId, bIsAutonomy: boolean-
FinishMarriageFamilyMoveInTargetEntityId: FB1EntityId, InIsSuccess: boolean-
GetAscendingTicks-integerReturns Ascending Ticks.
GetBoundSiteType-EB1SiteTypeReturns Bound Site Type.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetLastTriggerId-stringReturns Last Trigger Id.
GetLifeTriggerMap-table<string, FB1LifeTriggerDetailData>Returns Life Trigger Map.
HasAttendedOwnFuneral-booleanReturns whether it has Attended Own Funeral.
InitializeAscendingInfo--Initializes Ascending Info.
IsPendingTeleportToHome-booleanReturns whether Pending Teleport To Home.
IsTriggeredLifeTrigger-booleanReturns whether Triggered Life Trigger.
OnCancelLifeTriggerInteraction--Callback invoked on Cancel Life Trigger Interaction.
OnDeath--Callback invoked on Death.
OnFinishLifeTriggerInteraction--Callback invoked on Finish Life Trigger Interaction.
PostprocessMarriage--
RemoveLifeTriggerInLifeTriggerId: string-Removes Life Trigger.
ReplaceContentDataInPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStep-GrowthChangeInterface Begin
SendLifePopupPacketbInBecameGhost: booleanbooleanSends Life Popup Packet.
SetAscendingTicksInTicks: integer-Sets Ascending Ticks.
SetAttendedOwnFuneralbInValue: boolean-Sets Attended Own Funeral.
SetForceCanMarryInForce: boolean-Sets Force Can Marry.
SetInvinciblebInInvincible: boolean-Sets Invincible.
SetPendingTeleportToHomebInPending: boolean-Sets Pending Teleport To Home.
ShouldCheckAscension-booleanReturns whether it should Check Ascension.
ShouldUseScheduler-booleanReturns whether it should Use Scheduler.
StartDivorceInTargetEntityId: FB1EntityId, bIsAutonomy: boolean-Starts Divorce.
TryStartMarriageInTargetEntityId: FB1EntityId, InInteractionBag: string, InSocialEventSettingParam: FB1SiteEventSettingParamboolean

Override points (19)

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

FunctionParametersReturnsDescription
Override_AddLifeTriggerInLifeTriggerId: string-Adds Life Trigger.
Override_AddLifeTriggerImmediateInLifeTriggerId: string-Adds Life Trigger Immediate.
Override_CanMarryInTargetEntityId: FB1EntityId, InCheckByAutonomy: booleanbooleanmarriage
Override_CheckLifeTrigger--Checks Life Trigger.
Override_ClearAscendingInfo--Clears Ascending Info.
Override_ClearLifeTriggerInteractionData--Clears Life Trigger Interaction Data.
Override_FinishDivorceInTargetEntityId: FB1EntityId-
Override_FinishMarriageInTargetEntityId: FB1EntityId, bIsAutonomy: boolean-
Override_FinishMarriageFamilyMoveInTargetEntityId: FB1EntityId, InIsSuccess: boolean-
Override_InitializeAscendingInfo--Initializes Ascending Info.
Override_OnCancelLifeTriggerInteraction--Callback invoked on Cancel Life Trigger Interaction.
Override_OnDeath--Callback invoked on Death.
Override_OnFinishLifeTriggerInteraction--Callback invoked on Finish Life Trigger Interaction.
Override_PostprocessMarriage--
Override_RemoveLifeTriggerInInLifeTriggerId: string-Removes Life Trigger.
Override_ReplaceContentDataInPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStep-GrowthChangeInterface Begin
Override_SendLifePopupPacketbInBecameGhost: booleanbooleanSends Life Popup Packet.
Override_StartDivorceInTargetEntityId: FB1EntityId, bIsAutonomy: boolean-Starts Divorce.
Override_TryStartMarriageInTargetEntityId: FB1EntityId, InInteractionBag: string, InSocialEventSettingParam: FB1SiteEventSettingParamboolean