Skip to main content

FB2AttachMeshComponent

Overview

  • Component that manages attached meshes (props, etc.).

Metadata

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

Properties (6)

NameTypeDescription
AttachMeshIdListstring[]
CachedTemporaryMeshIdstring
OutfitHiddenAttachMeshIdsstring[]
SchoolScheduleAttachMeshIdstringSchool schedule AttachMesh state (BL-47796)
bArrivedSchoolScheduleDestboolean
bScheduleMeshAttachedboolean

Functions (16)

FunctionParametersReturnsDescription
AttachMeshInAttachMeshId: string-
CacheTemporaryMeshIdInCacheMeshId: string-
ClearSchoolScheduleAttachMeshId--Clears School Schedule Attach Mesh Id.
DetachMeshInAttachMeshId: string-
GetAttachMeshIdList-string[]Returns Attach Mesh Id List.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetSchoolScheduleAttachMeshId-stringReturns School Schedule Attach Mesh Id.
IsCurrentOutfitAllowSchoolBag-booleanChecks whether the current outfit category allows a schoolbag.
IsScheduleMeshAttached-booleanReturns whether Schedule Mesh Attached.
OnCostumeChange--Called when the AppearanceComponent changes the costume; decides the schoolbag per category.
OnDespawn--Called on despawn; directly clears AttachMeshIdList from the outside.
OnFinishInteractionSequence--Callback invoked on Finish Interaction Sequence.
OnPostureChangedInPrevPostureId: string, InCurrentPostureId: string-Called by the PostureComponent when the posture changes; re-evaluates the attach condition only when entering or leaving a water posture category (swim/dive/board).
SetSchoolScheduleAttachMeshIdInMeshId: string-School schedule-based AttachMesh management (BL-47796)
UpdateOutfitHiddenAttachMeshes--Updates Outfit Hidden Attach Meshes.
UpdateScheduleAttachMeshVisibilitybForceIdle: boolean-Updates schedule attach-mesh visibility. bForceIdle: treats the state as Idle when IsPlayingInteraction() is still true (e.g. at the OnFinishInteractionSequence callback).

Override points (10)

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

FunctionParametersReturnsDescription
Override_AttachMeshInAttachMeshId: string-
Override_CacheTemporaryMeshIdInCacheMeshId: string-
Override_ClearSchoolScheduleAttachMeshId--Clears School Schedule Attach Mesh Id.
Override_DetachMeshInAttachMeshId: string-
Override_OnCostumeChange--Called when the AppearanceComponent changes the costume; decides the schoolbag per category.
Override_OnDespawn--Called on despawn; directly clears AttachMeshIdList from the outside.
Override_OnFinishInteractionSequence--Callback invoked on Finish Interaction Sequence.
Override_OnPostureChangedInPrevPostureId: string, InCurrentPostureId: string-Called by the PostureComponent when the posture changes; re-evaluates the attach condition only when entering or leaving a water posture category (swim/dive/board).
Override_UpdateOutfitHiddenAttachMeshes--Updates Outfit Hidden Attach Meshes.
Override_UpdateScheduleAttachMeshVisibilitybForceIdle: boolean-Updates schedule attach-mesh visibility. bForceIdle: treats the state as Idle when IsPlayingInteraction() is still true.