Skip to main content

FB2TerritoryManager

Overview

  • Manages territories.

Metadata

FieldValue
Kindsystem
EnvironmentB2 - Simulation
Categorysystems
ExtendsFB2ManagerBase
Requirerequire('Systems.B2TerritoryManager')

Properties (6)

NameTypeDescription
DrawCachedBoundsTypeListtable<EB1TerritoryType, boolean>
DrawTerritoryTypeListtable<EB1TerritoryType, boolean>
EntityInMissionTerritoryMaptable<FB1EntityId, any>Maps an entity to the mission territory it belongs to. An entity belongs to only one mission territory at a time.
TerritoryAoiMaptable<FIntVector2, table<EB1TerritoryType, any[]>><AOI, <TerritoryType, Territories>>
TerritoryMaptable<EB1TerritoryType, any[]>Full list of territories.
bDrawAoIRegionboolean

Functions (21)

FunctionParametersReturnsDescription
B2LuaProfilingTest--
FindGatheringTerritoryCenter (static)InTerritoryId: string, InCurrentLocation: FVectorFVectorFinds and returns Gathering Territory Center.
FindTerritoryListSelf: FB2TerritoryManager, Type: EB1TerritoryType-Finds and returns Territory List.
FindTerritoryListAtLocationSelf: FB2TerritoryManager, Type: EB1TerritoryType, Location: FVector-Finds and returns Territory List At Location.
Get--
GetCurrentInMissionTerritoryCharacterEntityId: FB1EntityId-Returns Current In Mission Territory.
GetCurrentInMissionTerritoryByTagCharacterEntityId: FB1EntityId, TerritoryTag: string-Returns Current In Mission Territory By Tag.
GetType-EB2ManagerTypeReturns Type.
GetVehicleTerritoryAtPosPos: FVector-Returns Vehicle Territory At Pos.
IsInGatheringTerritory2D (static)InPos: FVector, InGatheringType: EB1GatheringTypebooleanReturns whether In Gathering Territory2 D.
IsInTerritoryType (static)InPos: FVector, InTerritoryType: EB1TerritoryTypebooleanReturns whether In Territory Type.
IsInTerritoryType2D (static)InPos: FVector, InTerritoryType: EB1TerritoryTypebooleanReturns whether In Territory Type2 D.
IsInVehicleUnableMoveWaterTerritory (static)InLocation: FVectorbooleanReturns whether In Vehicle Unable Move Water Territory.
IsInWaterTerritory (static)InPos: FVectorbooleanReturns whether In Water Territory.
IsInWaterTerritory2D (static)InPos: FVectorbooleanReturns whether In Water Territory2 D.
IsInWaterTerritory2DAndGetSwimHeight (static)InPos: FVector, OutSwimHeight: numberbooleanReturns whether In Water Territory2 DAnd Get Swim Height.
IsTickable-booleanReturns whether Tickable.
OnMinuteChanged--Callback invoked on Minute Changed.
ShowTerritoryInTypeName: string, bInShow: boolean-
ShowTerritoryAoIRegionbInShow: boolean-
ShowTerritoryCachedBoundsInTypeName: string, bInShow: boolean-

Override points (6)

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

FunctionParametersReturnsDescription
Override_B2LuaProfilingTest--
Override_FindGatheringTerritoryCenter (static)InTerritoryId: string, InCurrentLocation: FVectorFVectorFinds and returns Gathering Territory Center.
Override_OnMinuteChanged--Callback invoked on Minute Changed.
Override_ShowTerritoryInTypeName: string, bInShow: boolean-
Override_ShowTerritoryAoIRegionbInShow: boolean-
Override_ShowTerritoryCachedBoundsInTypeName: string, bInShow: boolean-