Skip to main content

FB2PostureComponent

Overview

  • Component that manages posture.

Metadata

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

Properties (7)

NameTypeDescription
CurrentPostureStateFB1PostureState
GrabStatestable<EB1HandType, FB1GrabState>
HoldHandTargetEntityIdFB1EntityId
OneTimePostureAnimIdsstring[]
PickUpContextFB2PickUpContext
PutDownContextFB2PutDownContext
SlotOccupyStartTicksinteger

Functions (47)

FunctionParametersReturnsDescription
ApplyOneTimePostureAnimIdInOneTimePostureAnimId: string-Applies One Time Posture Anim Id.
ClearCarriedObjectInHandType: EB1HandType, bSetPutDownEntityId: boolean-Clears Carried Object.
CurrentAnimIdInAnimSection: EB1LoopAnimSectionstring
CurrentGrabLoopAnimBodyParts-EB1AnimBodyParts
FillCharacterDataCache_PostureOutData: FB1CharacterDataCache_Posture-
FindGrabStateByEntityIdInEntityId: FB1EntityId, OutHandType: EB1HandType, OutGrabState: FB1GrabStatebooleanFinds and returns Grab State By Entity Id.
FindHandByEntityIdInEntityId: FB1EntityId, OutHandType: EB1HandTypebooleanFinds and returns Hand By Entity Id.
FindOneTimePostureOverrideAnimIdInNextPostureId: string, InNextSlotDirection: EB1SlotDirection, OutOverrideAnimInfo: FB1OverridePostureAnimInfobooleanFinds and returns One Time Posture Override Anim Id.
GetCurrentGrabEntityIdInHandType: EB1HandTypeFB1EntityIdReturns Current Grab Entity Id.
GetCurrentGrabObjectInHandType: EB1HandTypeFB2CarriableObjectReturns Current Grab Object.
GetCurrentPostureState-FB1PostureStateReturns Current Posture State.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetGrabBodyParts-EB1AnimBodyPartsReturns Grab Body Parts.
GetGrabStateInHandType: EB1HandTypeFB1GrabStateReturns Grab State.
GetHoldHandTargetEntityId-FB1EntityIdReturns Hold Hand Target Entity Id.
GetNextPostureId-string?Returns Next Posture Id.
GetPickUpContext-FB2PickUpContextDetermines where the PickUp notify attaches during Action_PickUp. Called on OnPlay and released on OnFinish.
GetPutDownContext-FB2PutDownContextDetermines where to put down during the PutDown notify in Action_PutDownV2. Called on OnPlay and released on OnFinish.
HasCarriedEntityInHandType: EB1HandTypebooleanReturns whether it has Carried Entity.
IsCarriedEntityInEntityId: FB1EntityIdbooleanReturns whether Carried Entity.
IsHandHoldingUmbrellaInHandType: EB1HandTypebooleanReturns whether Hand Holding Umbrella.
IsHoldingHand-booleanReturns whether Holding Hand.
IsHoldingUmbrella-booleanReturns whether Holding Umbrella.
IsOccupyingCarriableObjectInTargetEntityId: FB1EntityIdbooleanReturns whether Occupying Carriable Object.
IsOccupyingPostureSlotInTargetEntityId: FB1EntityId, InPostureDirection: EB1SlotDirection, InSlotName: stringbooleanReturns whether Occupying Posture Slot.
IsPostureInPostureCategoryId: stringbooleanReturns whether Posture.
IsRiddingVehicle-booleanReturns whether Ridding Vehicle.
IsStanding-booleanReturns whether Standing.
OnChangeGrowthStepInPrev: EB1GrowthStep, InCurr: EB1GrowthStep-Callback invoked on Change Growth Step.
PlayPostureLoopAnim--Plays Posture Loop Anim.
ReleaseHoldHand--
RemoveOneTimePostureAnimIdInOneTimePostureAnimId: string-Removes One Time Posture Anim Id.
ResetPickUpContext--Resets Pick Up Context.
ResetPutDownContext--Resets Put Down Context.
SendHoldHandStatePacket--Sends Hold Hand State Packet.
SetCarriedEntityIdInHandType: EB1HandType, InEntityId: FB1EntityId-Sets Carried Entity Id.
SetGrabIdInHandType: EB1HandType, InGrabId: string-Sets Grab Id.
SetGrabStateInHandType: EB1HandType, InEntityId: FB1EntityId, InGrabId: string-Sets Grab State.
SetNextPostureIdInPostureId: string?-Sets Next Posture Id.
SetPickUpContextInContext: FB2PickUpContext-Sets Pick Up Context.
SetPostureStateInPostureState: FB1PostureState-Sets Posture State.
SetPutDownContextInContext: FB2PutDownContext-Sets Put Down Context.
ShouldUseScheduler-booleanReturns whether it should Use Scheduler.
StopGrabLoopAnimationInHandType: EB1HandType-Stops Grab Loop Animation.
SyncGrabLoopAnimation--
TryHoldHandInTargetEntityId: FB1EntityIdbooleanInitiates holding hands.
TryPlayGrabLoopAnimationInHandType: EB1HandTypeboolean

Override points (14)

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

FunctionParametersReturnsDescription
Override_ApplyOneTimePostureAnimIdInOneTimePostureAnimId: string-Applies One Time Posture Anim Id.
Override_ClearCarriedObjectInHandType: EB1HandType, bSetPutDownEntityId: boolean-Clears Carried Object.
Override_CurrentAnimIdInAnimSection: EB1LoopAnimSectionstring
Override_CurrentGrabLoopAnimBodyParts-EB1AnimBodyParts
Override_HasCarriedEntityInHandType: EB1HandTypebooleanReturns whether it has Carried Entity.
Override_OnChangeGrowthStepInPrev: EB1GrowthStep, InCurr: EB1GrowthStep-Callback invoked on Change Growth Step.
Override_PlayPostureLoopAnim--Plays Posture Loop Anim.
Override_ReleaseHoldHand--
Override_RemoveOneTimePostureAnimIdInOneTimePostureAnimId: string-Removes One Time Posture Anim Id.
Override_SendHoldHandStatePacket--Sends Hold Hand State Packet.
Override_StopGrabLoopAnimationInHandType: EB1HandType-Stops Grab Loop Animation.
Override_SyncGrabLoopAnimation--
Override_TryHoldHandInTargetEntityId: FB1EntityIdbooleanInitiates holding hands.
Override_TryPlayGrabLoopAnimationInHandType: EB1HandTypeboolean