๐ŸญTerritory

AddNPC

INTERNAL. Adds an NPC handled by the territory

(method) NACT_Territory:AddNPC(nactNpc: NACT_NPC)

Parameters

Name
Type
Description

nactNpc

NACT_NPC

AddPatrolRoute

Adds a patrol route instead of using the config table

(method) NACT_Territory:AddPatrolRoute(sPatrolRouteName: string, tPatrol: table)

Parameters

Name
Type
Description

sPatrolRouteName

string

The patrol route name to use

tPatrol

table

CleanupCharacter

Cleanns up a character from the territory and it's npcs. Switches authority if charcter belonged to player that was authority

(method) NACT_Territory:CleanupCharacter(character: any)

Parameters

Name
Type
Description

character

any

Constructor

Territory is a zone controlled by NPCs.

It takes a parameter the following table:

cover points and patrol routes

Parameters

Name
Type
Description

tTerritoryConfig

TerritoryConfig

territory config map

sTerritoryName

string

name of the territory

FindByName

Finds a territory by name

Returns

NACT_Territory|nil Territory if it was found

Parameters

Name
Type
Description

sTerritoryName

string

Name of the territory

GetAlliesInZone

Gets all the enemies thare are in the territory

Returns

table Sequential array of allies in the territory

Parameters

GetEnemiesInZone

Gets all the enemies thare are in the territory

Returns

table Sequential array of enemies in the territory

Parameters

GetNetworkAuthority

Gets the network authority of the territory or nil if not defined or valid

Returns

Player|nil Current authority if defined and valid

Parameters

RefreshCoverPoints

This function will refresh the cover points of the territory by getting the map cover points thart are in the zone bounds. For now this only supports sphere

Parameters

RemoveNPC

INTERNAL. Removes an NPC from the territory

Parameters

Name
Type
Description

nactNpc

NACT_NPC

SwitchNetworkAuthority

INTERNAL. Switches the network authority of the player that will handle all client ops of the territory

Parameters

UpdateCSSTAuthority

INTERNAL. Switches authority for all clientside Triggers

Parameters

UpdateCoverViability

Updates the viability of cover points

Parameters

Name
Type
Description

tViabilityResult

array

[coverIndex]:

Last updated