Skip to main content

FB2GameObject

Overview

  • No description available.

Metadata

FieldValue
Kindstruct
EnvironmentB2 - Simulation
Categorystructs
ExtendsFB2Actor
Requirerequire('Objects.B2GameObject')

Properties (47)

NameTypeDescription
ActivePhysicsFB2ActivePhysicsRuntimeStateActive Physics
AppendixFB1VariantDataMap
AppliedMaterialParamContextstable<FB2MaterialParameterContext, boolean>
AssembledAssetHashinteger
AuthorNamestring
CachedPriceinteger
CraftingQualityBoostStateEB2CraftingQualityBoostState
CreatePurposeEB1ObjectCreatePurpose
CurrentInteracteeEntityIdSettable<FB1EntityId, boolean>
CustomizedDataFB1ObjectCustomizeSaveData[]
DebuggingSocialClusterIndexinteger
GalleryPathKeystring
HasWeatherObjectEffectAppliedboolean
HideMeshComponentTagstring
InventoryPutInTicksinteger
InvisibleObjectDuringInteractionboolean
IsDevLockedboolean
KickSuppressedbooleanKick-suppressed state (a runtime value derived from IsInUse, not serialized). A packet is sent to B1 only on change.
LinkedCharacterIdFB1EntityId
ObjectIdForStatTagMapstring
ObjectTableIdstring
ObjectTagsstring[]
ObjectTypeEB2GameObjectDetailType
OwnershipDataFB1OwnershipData
PlacementFlagsEB1PlacementFlag
PrintedMeshIdstring
PrintedMeshOffsetFVector
PropertyOwnedHouseholdEntityIdFB1EntityId
QualityEB1Quality
QualityIdstring
RelatedPropstable<integer, integer>
RuntimeObjectTagsstring[]
SalePriceinteger
ScaleFVector
SellerEntityIdFB1EntityId
SizeFVector
SocialClustersFB2SocialCluster[]
SpaceAttributeinteger
TaxIdstring
TickEnabledBeforeActivePhysicsboolean?
ZoneGraphNodeIndexinteger
ZoneIndexinteger
bB1Spawnedboolean
bIsContainsAOIboolean
bIsNonSiteObjectboolean
bSpaceAttributeCachedboolean
bZoneResolveAttemptedbooleanFlag for cases where the Zone could not be computed at spawn (e.g. Location (0,0,0)), to do a one-time deferred recompute on the next GetZoneIndex() call. Prevents repeated retries after one recompute (avoids repeated computation for truly Outside objects). Reset on Site change.

Functions (148)

FunctionParametersReturnsDescription
AddInteracteeEntityIdInEntityId: FB1EntityId-Adds Interactee Entity Id.
ApplyOwnershipToCharacterCache--Applies Ownership To Character Cache.
AttachCharacterInEntityId: FB1EntityId, InSlotName: stringboolean
BeginActivePhysicsInMaxLifetimeDeadline: FDateTime, InThrowInstigatorEntityId: FB1EntityId-Begins Active Physics.
CacheSpaceAttribute--
CanBeDusty-booleanReturns whether it can Be Dusty.
CanSelectGroupedInteraction-booleanReturns whether it can Select Grouped Interaction.
ClearOccupiedSlotAndGrouping--Clears Occupied Slot And Grouping.
ClearSpaceAttributeCache--Clears Space Attribute Cache.
CloseSale--
DetachCharacterInEntityId: FB1EntityIdboolean
ExcludeFromAOI--
FindMutableSocialClusterInSocialClusterType: EB1SocialClusterTypeFB2SocialClusterFinds and returns Mutable Social Cluster.
FindSocialClusterInSocialClusterType: EB1SocialClusterTypeFB2SocialClusterFinds and returns Social Cluster.
GetAppendix-FB1VariantDataMapReturns Appendix.
GetAssembledAssetHash-integerReturns Assembled Asset Hash.
GetAttachedCharacterId-FB1EntityIdReturns Attached Character Id.
GetAuthorName-stringReturns Author Name.
GetAvailableLocationInSocialClusterType: EB1SocialClusterType, InRequesterId: FB1EntityId, InIgnoreOverlapEntityIds: FB1EntityId[]FVectorReturns Available Location.
GetBoxCollisionScale-FVectorReturns Box Collision Scale.
GetCanPopUpDescription-booleanReturns Can Pop Up Description.
GetCanSpawnInvisibleObject-booleanReturns Can Spawn Invisible Object.
GetCityMovePolicyMapInCityMoveDataPolicyType: EB1CityMoveDataPolicyTypetable<string, EB1CityMoveDataPolicy>Returns City Move Policy Map.
GetCreatePurpose-EB1ObjectCreatePurposeReturns Create Purpose.
GetCustomDescription-stringReturns Custom Description.
GetCustomName-stringReturns Custom Name.
GetCustomizedData-FB1ObjectCustomizeSaveData[]Returns Customized Data.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetDevLock-booleanReturns Dev Lock.
GetExchangeCost-integerReturns Exchange Cost.
GetGalleryPathKey-stringReturns Gallery Path Key.
GetGroupObjectParentEntityId-FB1EntityIdReturns Group Object Parent Entity Id.
GetHideMeshComponentTag-stringReturns Hide Mesh Component Tag.
GetInteracteeEntityIdSet-table<FB1EntityId, boolean>Returns Interactee Entity Id Set.
GetInventoryDisplayObjectDtId-stringReturns Inventory Display Object Dt Id.
GetInventoryMasterEntityId-FB1EntityIdReturns Inventory Master Entity Id.
GetInventoryPutInTicks-integerReturns Inventory Put In Ticks.
GetInvisibleObjectDuringInteraction-booleanReturns Invisible Object During Interaction.
GetLinkedCharacterId-FB1EntityIdReturns Linked Character Id.
GetObjectId-stringReturns Object Id.
GetObjectKey-FB1EntityIdReturns Object Key.
GetObjectSelectionSetId-stringReturns Object Selection Set Id.
GetObjectTableId-stringReturns Object Table Id.
GetObjectTableRow-FB1ObjectTableRowReturns Object Table Row.
GetObjectTags-string[]Returns Object Tags.
GetObjectType-EB2GameObjectDetailTypeReturns Object Type.
GetOccupiedSlotName-stringReturns Occupied Slot Name.
GetOriginalPrice-integerReturns Original Price.
GetOwnership-FB1OwnershipDataReturns Ownership.
GetPriceInIsForceRecalculate: booleanintegerReturns Price.
GetPriceInSiteInIsForceRecalculate: booleanintegerReturns Price In Site.
GetPropertyOwnedHouseholdEntityId-FB1EntityIdReturns Property Owned Household Entity Id.
GetQuality-EB1QualityReturns Quality.
GetQualityId-stringReturns Quality Id.
GetRelatedProps-table<integer, integer>Returns Related Props.
GetRelativeLocation-FVectorReturns Relative Location.
GetSalePrice-integerReturns Sale Price.
GetSalvageValue-integerReturns Salvage Value.
GetScale-FVectorReturns Scale.
GetSellerEntityId-FB1EntityIdReturns Seller Entity Id.
GetSize-FVectorReturns Size.
GetSocialClusterCenterInSocialClusterType: EB1SocialClusterType, InSlotName: stringFVectorReturns Social Cluster Center.
GetSocialClusterMaxCountInSocialClusterType: EB1SocialClusterTypeintegerReturns Social Cluster Max Count.
GetSpaceAttribute-integerReturns Space Attribute.
GetTaxId-stringReturns Tax Id.
GetType-EB2EntityTypeReturns Type.
GetZoneGraphNodeIndex-integerReturns Zone Graph Node Index.
GetZoneIndex-integerReturns Zone Index.
HandleReceiveByHandOverInReceiverId: FB1EntityId-
HasGalleryPathKey-booleanReturns whether it has Gallery Path Key.
HasObjectTagInTag: stringbooleanReturns whether it has Object Tag.
HasOwnershipInOwnershipType: EB1OwnershipType, InOwnerId: FB1EntityIdbooleanReturns whether it has Ownership.
HasPlacementFlagInFlag: EB1PlacementFlagbooleanReturns whether it has Placement Flag.
HasPrintedMesh-booleanReturns whether it has Printed Mesh.
HasSpaceAttributeCache-booleanReturns whether it has Space Attribute Cache.
HasStatTagStatTag: stringbooleanReturns whether it has Stat Tag.
HasTPOBagIdInCandidateBagIds: table<string, boolean>booleanReturns whether it has TPOBag Id.
InitBoxComponent--Initializes Box Component.
IsActivePhysics-booleanActive Physics
IsActivePhysicsRestoreEnabled-booleanReturns whether Active Physics Restore Enabled.
IsAvailableInteractionBagsInteractionBagId: stringbooleanReturns whether Available Interaction Bags.
IsAvailableInteractionCategoryInteractionBagCategory: stringbooleanReturns whether Available Interaction Category.
IsB1Spawned-booleanReturns whether B1 Spawned.
IsBeingInteracted-booleanReturns whether this object is currently the target of someone's interaction (regardless of slot occupancy, including multi-interactors).
IsCleanUpTargetInCleanUpTarget: EB1CleanUpObjectTypebooleanReturns whether Clean Up Target.
IsContainsAOI-booleanReturns whether Contains AOI.
IsEmployeeFixedObjectInOwnerEntityId: FB1EntityIdbooleanReturns whether Employee Fixed Object.
IsInUse-booleanReturns whether a character is using/occupying this object. Union of the interactee set (slotless active interactions) and slot occupancy (persistent states like sitting/posture). Used to gate Kick (physics) blocking: if either is true the object is considered in use and Kick is blocked.
IsIndoor-booleanReturns whether Indoor.
IsInvisibleObject-booleanReturns whether Invisible Object.
IsNeedSpawnUpdate-booleanReturns whether Need Spawn Update.
IsNonSiteObject-booleanReturns whether Non Site Object.
IsOccupiableEntityInRequesterId: FB1EntityIdbooleanReturns whether Occupiable Entity.
IsOwnedByCharacterInOwnerId: FB1EntityIdbooleanReturns whether Owned By Character.
IsPriceable-booleanReturns whether Priceable.
IsSitAvailableInteractionCategoryInteractionBagCategory: stringbooleanReturns whether Sit Available Interaction Category.
IsSoldOut-booleanReturns whether Sold Out.
IsUnderRoof-booleanReturns whether Under Roof.
IsValidOwnershipInOwnershipType: EB1OwnershipType, InOwnerId: FB1EntityIdbooleanReturns whether Valid Ownership.
IsWeatherObjectEffectApplied-booleanReturns whether Weather Object Effect Applied.
NotifyKickRequestRejected--
OnApplyGlobalMaterialParameterInMaterialParamMappingId: string-Callback invoked on Apply Global Material Parameter.
OnObjectBpDataRebuiltInIsChangedObject: boolean-Callback invoked on Object Bp Data Rebuilt.
OnSpawnedGameObjectInSpawnedTransform: FTransform-Callback invoked on Spawned Game Object.
OnUpdateGameObjectInfo--Callback invoked on Update Game Object Info.
PauseSale--
ReCalculatePrice-boolean
RemoveInteracteeEntityIdInEntityId: FB1EntityId-Removes Interactee Entity Id.
RequestRemoveChildEntityInEntityId: FB1EntityIdbooleanRequests Remove Child Entity.
SendObjectGrouping--Sends Object Grouping.
SetAppendixInAppendix: FB1VariantDataMap-Sets Appendix.
SetAssembledAssetHashInHash: integer-Sets Assembled Asset Hash.
SetAuthorNameInAuthorName: string-Sets Author Name.
SetB1SpawnedbInSpawned: boolean-Sets B1 Spawned.
SetCanWeatheringbInCanWeathering: boolean-Sets Can Weathering.
SetCreatePurposeInPurpose: EB1ObjectCreatePurpose-Sets Create Purpose.
SetCustomizedDataInCustomizedData: FB1ObjectCustomizeSaveData[]-Sets Customized Data.
SetCustomizedLightBrightnessInPartsIndices: integer[], InEmissiveMulti: number, InAttenuationMulti: number-Sets Customized Light Brightness.
SetDevLockInLocked: boolean-Sets Dev Lock.
SetGalleryPathKeyInGalleryPathKey: string-Sets Gallery Path Key.
SetHideMeshComponentTagInHideMeshComponentTag: string-Sets Hide Mesh Component Tag.
SetInventoryPutInTicksInTicks: integer-Sets Inventory Put In Ticks.
SetInvisibleObjectDuringInteractionInInvisibleObjectDuringInteraction: boolean-Sets Invisible Object During Interaction.
SetLinkedCharacterIdInEntityId: FB1EntityId-Sets Linked Character Id.
SetLocatedSiteIdLocationSiteId: FB1EntityId-Sets Located Site Id.
SetNonSiteObjectbInIsNonSiteObject: boolean-Sets Non Site Object.
SetObjectIdInObjectId: string-Sets Object Id.
SetObjectStateInStateGroupId: string, InStateId: string-Sets Object State.
SetObjectTypeInType: EB2GameObjectDetailType-Sets Object Type.
SetOwnershipByDataInOwneshipData: FB1OwnershipDatabooleanSets Ownership By Data.
SetOwnershipByTypeInOwnershipType: EB1OwnershipType, InOwnerId: FB1EntityIdbooleanOwnership
SetPrintedMeshIdInPrintedMeshId: string-Sets Printed Mesh Id.
SetPrintedMeshOffsetInMeshOffset: FVector-Sets Printed Mesh Offset.
SetPropertyOwnedHouseholdEntityIdInEntityId: FB1EntityId-Sets Property Owned Household Entity Id.
SetQualityInQuality: EB1Quality-Sets Quality.
SetQualityIdInQualityId: string-Sets Quality Id.
SetRelatedPropsInRelatedProps: table<integer, integer>-Sets Related Props.
SetSalePriceInPrice: integer-Sets Sale Price.
SetScaleInScale: FVector-Sets Scale.
SetSellerEntityIdInEntityId: FB1EntityId-Sets Seller Entity Id.
SetSizeInSize: FVector-Sets Size.
SetWeatherObjectEffectAppliedbInApplied: boolean-Sets Weather Object Effect Applied.
SetZoneIndexInZoneIndex: integer-Sets Zone Index.
SyncKickSuppressedForReject--
ToTraceLog-string
UpdateEndBuildModeOccupiedEntitiesLocation--Updates End Build Mode Occupied Entities Location.
UpdateGameObjectSiteZoneIndex--Updates Game Object Site Zone Index.
UpdateSocialClusters--Updates Social Clusters.

Override points (26)

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

FunctionParametersReturnsDescription
Override_ApplyOwnershipToCharacterCache--Applies Ownership To Character Cache.
Override_AttachCharacterInEntityId: FB1EntityId, InSlotName: stringboolean
Override_BeginActivePhysicsInMaxLifetimeDeadline: FDateTime, InThrowInstigatorEntityId: FB1EntityId-Begins Active Physics.
Override_CacheSpaceAttribute--
Override_ClearOccupiedSlotAndGrouping--Clears Occupied Slot And Grouping.
Override_ClearSpaceAttributeCache--Clears Space Attribute Cache.
Override_CloseSale--
Override_DetachCharacterInEntityId: FB1EntityIdboolean
Override_ExcludeFromAOI--
Override_HandleReceiveByHandOverInReceiverId: FB1EntityId-
Override_InitBoxComponent--Initializes Box Component.
Override_NotifyKickRequestRejected--
Override_OnActivePhysicsSleepNotifiedInFinalTransform: InFinalTransform-Callback invoked on Active Physics Sleep Notified.
Override_OnApplyGlobalMaterialParameterInMaterialParamMappingId: string-Callback invoked on Apply Global Material Parameter.
Override_OnObjectBpDataRebuiltInIsChangedObject: boolean-Callback invoked on Object Bp Data Rebuilt.
Override_OnSpawnedGameObjectInSpawnedTransform: FTransform-Callback invoked on Spawned Game Object.
Override_OnUpdateGameObjectInfo--Callback invoked on Update Game Object Info.
Override_PauseSale--
Override_ReCalculatePrice-boolean
Override_RequestRemoveChildEntityInEntityId: FB1EntityIdbooleanRequests Remove Child Entity.
Override_SendObjectGrouping--Sends Object Grouping.
Override_SyncKickSuppressedForReject--
Override_UpdateEndBuildModeOccupiedEntitiesLocation--Updates End Build Mode Occupied Entities Location.
Override_UpdateGameObjectSiteZoneIndex--Updates Game Object Site Zone Index.
Override_UpdateKickSuppressed--Updates Kick Suppressed.
Override_UpdateSocialClusters--Updates Social Clusters.