Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkSlotAI Class Reference
Inheritance diagram for SCR_ScenarioFrameworkSlotAI:

Protected Member Functions

void OnAgentCompartmentEntered (AIAgent agent, IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
void OnAgentCompartmentLeft (AIAgent agent, IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
override bool InitOtherThings ()
override void AfterAllChildrenSpawned (SCR_ScenarioFrameworkLayerBase layer)
void AfterAllAgentsSpawned ()
 Initializes plugins, actions, and checks for parent layer spawn completion, then sets waypoints for AI if not initialized.
void ActivateAI ()
 Activates AI group, removes unwanted prefabs, balances units count, sets on agent remove and add events,.
void OnAgentAdded (AIAgent child)
void InitGroupComponents ()
 Initializes AI group components, sets formation, and combat parameters for agents in the group.
void InitWaypoints ()
 Initializes waypoints by finding them in specified layers, adding them to list, and processing them after initialization.
void CheckWaypointsAfterInit (SCR_ScenarioFrameworkLayerBase layer)
void ProcessWaypoints (SCR_ScenarioFrameworkLayerBase layer)
void SetWaypointToAI (SCR_ScenarioFrameworkLayerBase layer)
AIWaypoint CreateDefaultWaypoint ()
void DecreaseAIGroupMemberCount (SCR_AIGroup group, AIAgent agent)
bool CreateAIGroup ()
void SCR_ScenarioFrameworkSlotAI (IEntityComponentSource src, IEntity ent, IEntity parent)

Detailed Description

Definition at line 11 of file SCR_ScenarioFrameworkSlotAI.c.

Constructor & Destructor Documentation

◆ SCR_ScenarioFrameworkSlotAI()

void SCR_ScenarioFrameworkSlotAI::SCR_ScenarioFrameworkSlotAI ( IEntityComponentSource src,
IEntity ent,
IEntity parent )
inlineprotected
Parameters
[in]src
[in]ent
[in]parent

Definition at line 695 of file SCR_ScenarioFrameworkSlotAI.c.

Member Function Documentation

◆ ActivateAI()

void SCR_ScenarioFrameworkSlotAI::ActivateAI ( )
inlineprotected

Activates AI group, removes unwanted prefabs, balances units count, sets on agent remove and add events,.

Definition at line 227 of file SCR_ScenarioFrameworkSlotAI.c.

◆ AfterAllAgentsSpawned()

void SCR_ScenarioFrameworkSlotAI::AfterAllAgentsSpawned ( )
inlineprotected

Initializes plugins, actions, and checks for parent layer spawn completion, then sets waypoints for AI if not initialized.

Definition at line 204 of file SCR_ScenarioFrameworkSlotAI.c.

◆ AfterAllChildrenSpawned()

override void SCR_ScenarioFrameworkSlotAI::AfterAllChildrenSpawned ( SCR_ScenarioFrameworkLayerBase layer)
inlineprotected

Initializes AI after all children spawned, removes event handler.

Parameters
[in]layerfor which this is called

Definition at line 184 of file SCR_ScenarioFrameworkSlotAI.c.

◆ CheckWaypointsAfterInit()

void SCR_ScenarioFrameworkSlotAI::CheckWaypointsAfterInit ( SCR_ScenarioFrameworkLayerBase layer)
inlineprotected

Checks waypoints after init, adds/removes event handler for all waypoints spawned, increments spawned way

Parameters
[in]layerfor which this is called

Definition at line 465 of file SCR_ScenarioFrameworkSlotAI.c.

◆ CreateAIGroup()

bool SCR_ScenarioFrameworkSlotAI::CreateAIGroup ( )
inlineprotected

Creates an AI group, sets its faction, adds entity to group, and optionally sets entity's position.

Returns
true if AI group creation is successful, false otherwise.

Definition at line 663 of file SCR_ScenarioFrameworkSlotAI.c.

◆ CreateDefaultWaypoint()

AIWaypoint SCR_ScenarioFrameworkSlotAI::CreateDefaultWaypoint ( )
inlineprotected

Creates default waypoint for AI entity, spawns it in world space, adds it to list.

Returns
an AIWaypoint object if successful, otherwise null.

Definition at line 601 of file SCR_ScenarioFrameworkSlotAI.c.

◆ DecreaseAIGroupMemberCount()

void SCR_ScenarioFrameworkSlotAI::DecreaseAIGroupMemberCount ( SCR_AIGroup group,
AIAgent agent )
inlineprotected

Decreases AI group member count, handles termination if group empty, adds removed AI entity prefab to removal list.

Parameters
[in]groupDecreases AI group member count, checks for termination conditions, adds removed AI entity prefab to removal list.
[in]agentAgent represents an AI entity in the game world, controlled by AI group, which is decreased from the group count in this

Definition at line 626 of file SCR_ScenarioFrameworkSlotAI.c.

◆ InitGroupComponents()

void SCR_ScenarioFrameworkSlotAI::InitGroupComponents ( )
inlineprotected

Initializes AI group components, sets formation, and combat parameters for agents in the group.

Definition at line 310 of file SCR_ScenarioFrameworkSlotAI.c.

◆ InitOtherThings()

override bool SCR_ScenarioFrameworkSlotAI::InitOtherThings ( )
inlineprotected

Clears cached values and handles Waypoint Sets

Returns
true if all initialization steps succeed, false otherwise.

Definition at line 166 of file SCR_ScenarioFrameworkSlotAI.c.

◆ InitWaypoints()

void SCR_ScenarioFrameworkSlotAI::InitWaypoints ( )
inlineprotected

Initializes waypoints by finding them in specified layers, adding them to list, and processing them after initialization.

Definition at line 408 of file SCR_ScenarioFrameworkSlotAI.c.

◆ OnAgentAdded()

void SCR_ScenarioFrameworkSlotAI::OnAgentAdded ( AIAgent child)
inlineprotected
Parameters
[in]childChild is an AI Agent added to the group, triggers group component initialization and waypoint setting if necessary.

Definition at line 287 of file SCR_ScenarioFrameworkSlotAI.c.

◆ OnAgentCompartmentEntered()

void SCR_ScenarioFrameworkSlotAI::OnAgentCompartmentEntered ( AIAgent agent,
IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
inlineprotected

Definition at line 125 of file SCR_ScenarioFrameworkSlotAI.c.

◆ OnAgentCompartmentLeft()

void SCR_ScenarioFrameworkSlotAI::OnAgentCompartmentLeft ( AIAgent agent,
IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
inlineprotected

Definition at line 137 of file SCR_ScenarioFrameworkSlotAI.c.

◆ ProcessWaypoints()

void SCR_ScenarioFrameworkSlotAI::ProcessWaypoints ( SCR_ScenarioFrameworkLayerBase layer)
inlineprotected

Initializes waypoints for AI if scenario is initiated, otherwise waits for all children to spawn before setting waypoints.

Parameters
[in]layerfor which this is called

Definition at line 495 of file SCR_ScenarioFrameworkSlotAI.c.

◆ SetWaypointToAI()

void SCR_ScenarioFrameworkSlotAI::SetWaypointToAI ( SCR_ScenarioFrameworkLayerBase layer)
inlineprotected
Parameters
[in]layerInitializes waypoints for AI group in scenario framework layer.

Definition at line 505 of file SCR_ScenarioFrameworkSlotAI.c.


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