Skip to main content

FB2SitePathFindingComponent

Overview

  • Component that handles pathfinding within a site.

Metadata

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

Properties (18)

NameTypeDescription
ExecutingPathFollowingCharactersFB1EntityId[]
GiftBoxPointsFVector[]
GridMaxXinteger
GridMaxYinteger
MaxFloorinteger
MinFloorinteger
OutermostInsideCityGraphLocationsFVector[]
OutlineInfosFB1SitePathFindOutlineInfo[]
PathfindingGrid2table<integer, FB1FloorPathFindGrid>
ReplacingOutlinePointsFVector[]
SubZoneGraphFB2SubZoneGraph
VehiclePointFVector
XCollisionBitArrayMaptable<integer, FB1PathFindGridBitArray>
YCollisionBitArrayMaptable<integer, FB1PathFindGridBitArray>
ZoneGraphNodeArrayFB1ZoneGraphNode[]
ZoneGraphZoneInfoMaptable<integer, FB1ZoneGraphZoneInfo>
bOnlyReachableByWarpboolean
bUseVehiclePointboolean

Functions (23)

FunctionParametersReturnsDescription
GetCenterToOBBLength2DCenterToTarget: FVector, BoxHalfExtents: FVectornumberReturns Center To OBBLength2 D.
GetExecutingPathFollowingCharacters-FB1EntityId[]Returns Executing Path Following Characters.
GetFloorFromWorldLocationInScopeLock: FRWScopeLock, InWorldLocation: FVectorintegerReturns Floor From World Location.
GetGridDataInScopeLock: FRWScopeLock, InLocation: FVector, OutGridData: FB1PathFindGridDatabooleanReturns Grid Data.
GetMemoryUsage-SIZE_TReturns Memory Usage.
GetMoveWithVehicleSitePointOutMoveWithVehicleSitePoint: FVectorbooleanReturns Move With Vehicle Site Point.
GetNearGridHeightInScopeLock: FRWScopeLock, InFindWorldLocation: FVectornumberReturns Near Grid Height.
GetNearestOutlineLocationInScopeLock: FRWScopeLock, InCharacterId: FB1EntityId, InFindStartWorldLocation: FVector, InDestinationWorldLocation: FVector, OutNearestOutlineLocation: FVector, bUseReplacingOutlinePoints: booleanbooleanReturns Nearest Outline Location.
GetOutermostInsideCityGraphPointInScopeLock: FRWScopeLock, InStartWorldLocation: FVector, OutCityGraphLocation: FVectorbooleanReturns Outermost Inside City Graph Point.
GetRandomWalkAroundSiteLocationInRequesterId: FB1EntityId, InStartLoc: FVector, OutGoalLocation: FVector, InOption: stringbooleanReturns Random Walk Around Site Location.
GetReplacingOutlinePoints-FVector[]Returns Replacing Outline Points.
GetWalkToSitePointInScopeLock: FRWScopeLock, InRequesterId: FB1EntityId, InStartLoc: FVector, OutGoalLocation: FVectorbooleanReturns Walk To Site Point.
HasReplacingOutlinePoint-booleanReturns whether it has Replacing Outline Point.
IsExistMovePathInScopeLock: FRWScopeLock, InEntityId: FB1EntityId, InStartLocation: FVector, InTargetLocation: FVector, CachedInformation: FB2CachedPathfindInformationbooleanReturns whether Exist Move Path.
IsOnlyReachableByWarp-booleanReturns whether Only Reachable By Warp.
IsSafetyLocationInScopeLock: FRWScopeLock, InWorldLocation: FVectorbooleanReturns whether Safety Location.
IsSafetySquarePointInScopeLock: FRWScopeLock, InPoint: FVectorbooleanReturns whether Safety Square Point.
IsWalkablePointInScopeLock: FRWScopeLock, InPoint: FVector, InWithUnusable: booleanbooleanReturns whether Walkable Point.
OnFinishPathFollowingInExecutingCharacterId: FB1EntityId-Callback invoked on Finish Path Following.
OnStartPathFollowingInExecutingCharacterId: FB1EntityId-Callback invoked on Start Path Following.
TestOutermostInsideCityGraphPointOutInvalidLocations: FVector[]-
ToRelativeLocationInWorldLocation: FVectorFVector
ToWorldLocationInRelativeLocation: FVectorFVector

Override points (5)

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

FunctionParametersReturnsDescription
Override_HasReplacingOutlinePoint-booleanReturns whether it has Replacing Outline Point.
Override_OnFinishPathFollowingInExecutingCharacterId: FB1EntityId-Callback invoked on Finish Path Following.
Override_OnStartPathFollowingInExecutingCharacterId: FB1EntityId-Callback invoked on Start Path Following.
Override_ToRelativeLocationInWorldLocation: FVectorFVector
Override_ToWorldLocationInRelativeLocation: FVectorFVector