Skip to main content

FB2SlotComponent

Overview

  • Component that manages placement slots.

Metadata

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

Properties (12)

NameTypeDescription
AutoGeneratedCraftingSlotDatasFB1ObjectBpSlotData[]Stores auto-generated HandCraftSlot data. Since FB2SlotStateInfo references it by raw pointer, modify it only through GenerateCraftingSlots().
CanSpawnInvisibleObjectboolean
ManuallyAssignedOwnerstable<FB1EntityId, boolean>
OccupiedSlotOwnerFB1EntityIdOwner EntityId of the ObjectType slot I am occupying.
OwnershipInfotable<FB1EntityId, string>Ownership (assigning my own seat).
SitSlotCountintegerNumber of Sit-tagged slots.
SlotStateInfosFB2SlotStateInfo[]
UseSlotCompanyIdOnlyFB1EntityIdAll slots of this object can be used only if the company id matches.
UseSlotEmployeeObjectIdOnlyFB1EntityIdA company's assigned seat for staff.
UseSlotSchedulerIdOnlyFB1EntityIdAn object reserved by the CoopScheduler for cooperative behavior; usable only by co-op participants.
UsedSlotOwnershipTagstable<string, boolean>
bInitializeSlotStateInfosboolean

Functions (76)

FunctionParametersReturnsDescription
AddOccupyingReasonByEntityIdInOccupyEntityId: FB1EntityId, InOccupyingReason: EB1SlotOccupyingReason-Adds Occupying Reason By Entity Id.
AddOccupyingReasonBySlotStateInfoInSlotStateInfo: FB2SlotStateInfo, InOccupyingReason: EB1SlotOccupyingReason-Adds Occupying Reason By Slot State Info.
CanOccupySlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParam, InCheckOnlyTarget: booleanbooleanReturns whether it can Occupy Slot.
CanOccupySlotCheckOnlyEntityInSlotType: EB1SlotType, InEntityId: FB1EntityIdbooleanReturns whether it can Occupy Slot Check Only Entity.
CanOccupySlotWithComponentNameInfoInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParam, OutNameInfo: FB2SlotComponentNameInfobooleanReturns whether it can Occupy Slot With Component Name Info.
ConvertWorldLocationInRelativeLocation: FVectorFVector
ConvertWorldRotatorInRelativeRotator: FRotatorFRotator
DestroyInvisibleChairObjectsReason: EB2EntityDestroyReason-
DestroyInvisibleObjectInSlotInSlotName: string-
FindClosestEnableEatDiningSlotInLocation: FVector, InOptionalParentEntityId: FB1EntityId, InOutTargetSlotParam: FB2TargetSlotParambooleanFinds and returns Closest Enable Eat Dining Slot.
FindClosestOccupiableSlotInSlotType: EB1SlotType, InLocation: FVector, InOutTargetSlotParam: FB2TargetSlotParam, InFilterObjectSlotId: stringbooleanIf InFilterObjectSlotId is specified, searches only slots with that ObjectSlotId as candidates.
FindEnableOnlyInteractionTagSlotInSlotType: EB1SlotType, InInteractionTags: string[], InOutTargetSlotParam: FB2TargetSlotParambooleanFinds and returns Enable Only Interaction Tag Slot.
FindSlotStateInfoBySlotNameInSlotName: stringFB2SlotStateInfoFinds and returns Slot State Info By Slot Name.
FindSlotStateInfoBySlotParamInSlotType: EB1SlotType, InSlotParam: FB2TargetSlotParamFB2SlotStateInfoFinds and returns Slot State Info By Slot Param.
FixSlotDirectionInSlotType: EB1SlotType, InOutTargetSlotParam: FB2TargetSlotParamboolean
GenerateCraftingSlots--Generates Crafting Slots.
GetCanSpawnInvisibleObject-booleanReturns Can Spawn Invisible Object.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetEmptyObjectSlotCountByIdInObjectSlotId: stringintegerReturns Empty Object Slot Count By Id.
GetEmptySlotCountInObjectCategoryId: stringintegerReturns Empty Slot Count.
GetEmptySlotNameByObjectCategoryInObjectCategory: string, InGameObject: FB2GameObject, OutSlotName: string-Returns Empty Slot Name By Object Category.
GetEmptySlotNameBySlotIdInSlotId: string, InGameObject: FB2GameObject, OutSlotName: string-Returns Empty Slot Name By Slot Id.
GetEmptySlotNamesByObjectCategoryInObjectCategory: string, OutSlotNames: string[]-Returns Empty Slot Names By Object Category.
GetEmptySlotNamesByObjectCategoryWithObjectInObjectCategory: string, InGameObject: FB2GameObject, OutSlotNames: string[]-Returns Empty Slot Names By Object Category With Object.
GetEmptySlotStateInfoInSlotType: EB1SlotTypeFB2SlotStateInfoReturns Empty Slot State Info.
GetFirstNonBlockedSlotLocationInSlotType: EB1SlotType, OutLocation: FVectorbooleanReturns First Non Blocked Slot Location.
GetFirstSlotLocationInSlotType: EB1SlotType, OutLocation: FVectorbooleanReturns First Slot Location.
GetFirstSlotRotationInSlotType: EB1SlotType, OutRotation: FRotatorbooleanReturns First Slot Rotation.
GetObjectSlotCountByIdInObjectSlotId: stringintegerReturns Object Slot Count By Id.
GetObjectSlotEmployeeObjectId-FB1EntityIdReturns Object Slot Employee Object Id.
GetOccupiedSlotOwner-FB1EntityIdReturns Occupied Slot Owner.
GetOccupySlotLocationInOccupyCharacterEntityId: FB1EntityId, InSlotType: EB1SlotType, OutLocation: FVectorbooleanReturns Occupy Slot Location.
GetSitSlotCount-integerReturns Sit Slot Count.
GetSlotLocationBySlotNameInSlotName: string, OutLocation: FVectorbooleanReturns Slot Location By Slot Name.
GetSlotLocationBySlotParamInSlotType: EB1SlotType, InSlotParam: FB2TargetSlotParam, OutLocation: FVectorbooleanReturns Slot Location By Slot Param.
GetSlotLocationBySlotStateInfoInSlotStateInfo: FB2SlotStateInfo, OutLocation: FVectorbooleanReturns Slot Location By Slot State Info.
GetSlotOwnershipInfos-table<FB1EntityId, string>Returns Slot Ownership Infos.
GetSlotRotationBySlotNameInSlotName: string, OutRotation: FRotatorbooleanReturns Slot Rotation By Slot Name.
GetSlotRotationBySlotParamInSlotType: EB1SlotType, InSlotParam: FB2TargetSlotParam, OutRotation: FRotatorbooleanReturns Slot Rotation By Slot Param.
GetSlotRotationBySlotStateInfoInSlotStateInfo: FB2SlotStateInfo, OutRotation: FRotatorbooleanReturns Slot Rotation By Slot State Info.
GetSlotStateInfoByComponentNameInSlotType: EB1SlotType, InComponentName: stringFB2SlotStateInfoSearches by the BP SceneComponent name rather than the SlotName, for ComponentName-based reverse lookup such as ConnectedChair.
GetSlotStateInfoBySlotNameInSlotType: EB1SlotType, InSlotName: stringFB2SlotStateInfoReturns Slot State Info By Slot Name.
GetSlotStateInfoBySlotParamInSlotType: EB1SlotType, InSlotParam: FB2TargetSlotParamFB2SlotStateInfoReturns Slot State Info By Slot Param.
GetSlotStateInfoFromOccupyingEntityInSlotType: EB1SlotType, InOccupyingEntity: FB1EntityId, SpecificReason: EB1SlotOccupyingReasonFB2SlotStateInfoReturns Slot State Info From Occupying Entity.
GetSlotStateInfos-FB2SlotStateInfo[]Returns Slot State Infos.
GetSlotStateInfosByObjectSlotIdInObjectSlotId: string, OutSlots: FB2SlotStateInfo[]-Returns all Object slots matching the given ObjectSlotId, for searching auto-generated slot groups.
HasAnyCompatibleSlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParambooleanReturns whether it has Any Compatible Slot.
HasOccupiedSlotOwner-booleanReturns whether it has Occupied Slot Owner.
IsAutoGenSlotInSlot: FB2SlotStateInfobooleanDetermines whether a slot is auto-generated by checking whether its SlotData pointer falls within the AutoGeneratedCraftingSlotDatas range.
IsOccupiableEntityOccupyEntityId: FB1EntityIdbooleanReturns whether Occupiable Entity.
IsOccupiableEntityWithResultOccupyEntityId: FB1EntityId, OutResult: EB1AddInteractionQueueResultbooleanReturns whether Occupiable Entity With Result.
IsOccupiableSlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParambooleanReturns whether Occupiable Slot.
IsSlotOccupiedInSlotType: EB1SlotTypebooleanReturns whether Slot Occupied.
IsSlotOccupiedWithEntityInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParam, InCheckOnlyTarget: booleanbooleanReturns whether Slot Occupied With Entity.
IsSlotStateInfosInitialized-booleanReturns whether Slot State Infos Initialized.
IsSpecificSlotOccupiableInSlotType: EB1SlotType, InSlotName: string, InTargetSlotParam: FB2TargetSlotParambooleanReturns whether Specific Slot Occupiable.
OccupySlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParam-
RebuildSlotDataOutRescueEntityIds: FB1EntityId[], OutDetachEntityIds: FB1EntityId[]-
RecacheSlotData--
RecreatePrintedObjectSlotStateInfos--
ReleaseSlotOwnershipInOwnershipEntityId: FB1EntityId-
RemoveOccupiedObjectSlotReason--Removes Occupied Object Slot Reason.
RemoveOccupyingAllReasonInOccupyEntityId: FB1EntityId-Removes Occupying All Reason.
RemoveOccupyingReasonByEntityIdInOccupyEntityId: FB1EntityId, InOccupyingReason: EB1SlotOccupyingReason-Removes Occupying Reason By Entity Id.
RemoveOccupyingReasonBySlotNameInSlotName: string, InOccupyingReason: EB1SlotOccupyingReason-Removes Occupying Reason By Slot Name.
SetObjectSlotCompanyIdInCompanyId: FB1EntityId-Sets Object Slot Company Id.
SetObjectSlotEmployeeObjectIdInEmployeeObjectId: FB1EntityId-Sets Object Slot Employee Object Id.
SetObjectSlotSchedulerIdInSchedulerId: FB1EntityId-Sets Object Slot Scheduler Id.
SetOccupiedSlotOwnerInOccupiedSlotOwner: FB1EntityId-Sets Occupied Slot Owner.
SpawnInvisibleChairObjects--Spawns Invisible Chair Objects.
TryOccupyAnyAvailableSlotInSlotType: EB1SlotType, InLocation: FVector, InOutTargetSlotParam: FB2TargetSlotParam, InbSortByNearestFirst: booleanboolean
TryOccupyClosestSlotInSlotType: EB1SlotType, InLocation: FVector, InOutTargetSlotParam: FB2TargetSlotParamboolean
TryOccupySlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParamboolean
TryRequestSlotOwnershipInOwnershipEntityId: FB1EntityId, InSlotOwnershipTag: stringboolean
UpdateInteractionSlotBlockStatebBuildModeOrVersionChange: boolean-Updates Interaction Slot Block State.
UpdateSitSlotCache--Updates Sit Slot Cache.

Override points (20)

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

FunctionParametersReturnsDescription
Override_CanOccupySlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParam, InCheckOnlyTarget: booleanbooleanReturns whether it can Occupy Slot.
Override_CanOccupySlotCheckOnlyEntityInSlotType: EB1SlotType, InEntityId: FB1EntityIdbooleanReturns whether it can Occupy Slot Check Only Entity.
Override_ConvertWorldLocationInRelativeLocation: FVectorFVector
Override_ConvertWorldRotatorInRelativeRotator: FRotatorFRotator
Override_DestroyInvisibleChairObjectsReason: EB2EntityDestroyReason-
Override_DestroyInvisibleObjectInSlotInSlotName: string-
Override_GenerateCraftingSlots--Generates Crafting Slots.
Override_HasAnyCompatibleSlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParambooleanReturns whether it has Any Compatible Slot.
Override_HasOccupiedSlotOwner-booleanReturns whether it has Occupied Slot Owner.
Override_OccupySlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParam-
Override_RecacheSlotData--
Override_RecreatePrintedObjectSlotStateInfos--
Override_ReleaseSlotOwnershipInOwnershipEntityId: FB1EntityId-
Override_RemoveOccupiedObjectSlotReason--Removes Occupied Object Slot Reason.
Override_RemoveOccupyingAllReasonInOccupyEntityId: FB1EntityId-Removes Occupying All Reason.
Override_SpawnInvisibleChairObjects--Spawns Invisible Chair Objects.
Override_TryOccupySlotInSlotType: EB1SlotType, InTargetSlotParam: FB2TargetSlotParamboolean
Override_TryRequestSlotOwnershipInOwnershipEntityId: FB1EntityId, InSlotOwnershipTag: stringboolean
Override_UpdateInteractionSlotBlockStatebBuildModeOrVersionChange: boolean-Updates Interaction Slot Block State.
Override_UpdateSitSlotCache--Updates Sit Slot Cache.