Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_AIGroupCohesionComponent Interface Reference
Inheritance diagram for SCR_AIGroupCohesionComponent:

Public Member Functions

int GetPlayersInCohesion (out notnull array< int > playersInCohesion)
 

Protected Member Functions

float GetGroupCohesionCheckTimeInMs ()
 
override void OnPostInit (IEntity owner)
 
void OnPlayerAddedToGroup (SCR_AIGroup aiGroup, int playerID)
 
void OnPlayerRemovedFromGroup (SCR_AIGroup aiGroup, int playerID)
 
void DrawDebug ()
 
void CreateAgentDistanceGraph (out array< ref array< int > > playerGraph, array< int > players, int playerCount)
 
void FindGroupFromAgentDistanceGraph (out array< int > biggestGroup, const array< ref array< int > > playerGraph, int playerCount, int groupMinSize)
 
bool GetGroupOfPlayersInCohesion (out notnull array< int > playerGroup, out notnull array< int > players, out int groupMinSize)
 
void AwardXPToGroup (array< int > playerGroup, array< int > players, int groupMinSize)
 
void CheckGroupCohesion ()
 

Protected Attributes

float m_fGroupCohesionCheck
 
float m_fGroupCohesionRadius
 
float m_fGroupCohesionXpIncreasePerPlayer
 
int m_iMaxGroupCohesionLevel
 
bool m_bDebugActive
 
int m_iGroupCohesionLevel = 0
 
SCR_AIGroup m_Group
 

Member Function Documentation

◆ AwardXPToGroup()

void SCR_AIGroupCohesionComponent.AwardXPToGroup ( array< int > playerGroup,
array< int > players,
int groupMinSize )
protected

◆ CheckGroupCohesion()

void SCR_AIGroupCohesionComponent.CheckGroupCohesion ( )
protected

◆ CreateAgentDistanceGraph()

void SCR_AIGroupCohesionComponent.CreateAgentDistanceGraph ( out array< ref array< int > > playerGraph,
array< int > players,
int playerCount )
protected

◆ DrawDebug()

void SCR_AIGroupCohesionComponent.DrawDebug ( )
protected

◆ FindGroupFromAgentDistanceGraph()

void SCR_AIGroupCohesionComponent.FindGroupFromAgentDistanceGraph ( out array< int > biggestGroup,
const array< ref array< int > > playerGraph,
int playerCount,
int groupMinSize )
protected

◆ GetGroupCohesionCheckTimeInMs()

float SCR_AIGroupCohesionComponent.GetGroupCohesionCheckTimeInMs ( )
protected

◆ GetGroupOfPlayersInCohesion()

bool SCR_AIGroupCohesionComponent.GetGroupOfPlayersInCohesion ( out notnull array< int > playerGroup,
out notnull array< int > players,
out int groupMinSize )
protected

◆ GetPlayersInCohesion()

int SCR_AIGroupCohesionComponent.GetPlayersInCohesion ( out notnull array< int > playersInCohesion)

◆ OnPlayerAddedToGroup()

void SCR_AIGroupCohesionComponent.OnPlayerAddedToGroup ( SCR_AIGroup aiGroup,
int playerID )
protected

◆ OnPlayerRemovedFromGroup()

void SCR_AIGroupCohesionComponent.OnPlayerRemovedFromGroup ( SCR_AIGroup aiGroup,
int playerID )
protected

◆ OnPostInit()

override void SCR_AIGroupCohesionComponent.OnPostInit ( IEntity owner)
protected

Member Data Documentation

◆ m_bDebugActive

bool SCR_AIGroupCohesionComponent.m_bDebugActive
protected

◆ m_fGroupCohesionCheck

float SCR_AIGroupCohesionComponent.m_fGroupCohesionCheck
protected

◆ m_fGroupCohesionRadius

float SCR_AIGroupCohesionComponent.m_fGroupCohesionRadius
protected

◆ m_fGroupCohesionXpIncreasePerPlayer

float SCR_AIGroupCohesionComponent.m_fGroupCohesionXpIncreasePerPlayer
protected

◆ m_Group

SCR_AIGroup SCR_AIGroupCohesionComponent.m_Group
protected

◆ m_iGroupCohesionLevel

int SCR_AIGroupCohesionComponent.m_iGroupCohesionLevel = 0
protected

◆ m_iMaxGroupCohesionLevel

int SCR_AIGroupCohesionComponent.m_iMaxGroupCohesionLevel
protected

The documentation for this interface was generated from the following file: