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

Protected Member Functions

void SCR_AIStaticArtilleryActivity (SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint, vector targetPos, SCR_EAIArtilleryAmmoType ammoType, int targetShotCount, float priorityLevel=PRIORITY_LEVEL_NORMAL)
override void OnActionSelected ()
AIAgent FindBestAgentForArtillery (notnull array< AIAgent > agents, notnull IEntity artilleryEntity, out int outIndex)
 Selects best agent to operate artillery entity. Now selects nearest agent.
override void OnActionDeselected ()
override void OnActionCompleted ()
override void OnActionFailed ()
void SendMessages (notnull array< ref SCR_AIGroupVehicle > turrets, notnull array< AIAgent > assignedAgents)
override void OnChildBehaviorCreated (SCR_AIBehaviorBase childBehavior)
override void OnChildBehaviorFinished (SCR_AIBehaviorBase childBehavior)
 Called by agent when he failed his behavior related to this activity.
void OnChildBehaviorArtilleryFired (SCR_AIStaticArtilleryBehavior behavior, AIAgent agent)

Protected Attributes

vector m_vTargetPos
SCR_EAIArtilleryAmmoType m_eAmmoType
int m_iTargetShotCount
ref array< AIAgent > m_aAssignedAgents = {}
ref array< AIAgent > m_aFailedAgents = {}
int m_iActualShotCount

Detailed Description

Definition at line 1 of file SCR_AIStaticArtilleryActivity.c.

Constructor & Destructor Documentation

◆ SCR_AIStaticArtilleryActivity()

void SCR_AIStaticArtilleryActivity::SCR_AIStaticArtilleryActivity ( SCR_AIGroupUtilityComponent utility,
AIWaypoint relatedWaypoint,
vector targetPos,
SCR_EAIArtilleryAmmoType ammoType,
int targetShotCount,
float priorityLevel = PRIORITY_LEVEL_NORMAL )
inlineprotected

targetPos - position where artillery shells must land. targetShotCount - total amount of shots which must be fired. If it's -1, artillery will be fired infinitely.

Definition at line 16 of file SCR_AIStaticArtilleryActivity.c.

Member Function Documentation

◆ FindBestAgentForArtillery()

AIAgent SCR_AIStaticArtilleryActivity::FindBestAgentForArtillery ( notnull array< AIAgent > agents,
notnull IEntity artilleryEntity,
out int outIndex )
inlineprotected

Selects best agent to operate artillery entity. Now selects nearest agent.

Definition at line 114 of file SCR_AIStaticArtilleryActivity.c.

◆ OnActionCompleted()

override void SCR_AIStaticArtilleryActivity::OnActionCompleted ( )
inlineprotected

Definition at line 148 of file SCR_AIStaticArtilleryActivity.c.

◆ OnActionDeselected()

override void SCR_AIStaticArtilleryActivity::OnActionDeselected ( )
inlineprotected

Definition at line 141 of file SCR_AIStaticArtilleryActivity.c.

◆ OnActionFailed()

override void SCR_AIStaticArtilleryActivity::OnActionFailed ( )
inlineprotected

Definition at line 155 of file SCR_AIStaticArtilleryActivity.c.

◆ OnActionSelected()

override void SCR_AIStaticArtilleryActivity::OnActionSelected ( )
inlineprotected

Definition at line 27 of file SCR_AIStaticArtilleryActivity.c.

◆ OnChildBehaviorArtilleryFired()

void SCR_AIStaticArtilleryActivity::OnChildBehaviorArtilleryFired ( SCR_AIStaticArtilleryBehavior behavior,
AIAgent agent )
inlineprotected

Definition at line 249 of file SCR_AIStaticArtilleryActivity.c.

◆ OnChildBehaviorCreated()

override void SCR_AIStaticArtilleryActivity::OnChildBehaviorCreated ( SCR_AIBehaviorBase childBehavior)
inlineprotected

Definition at line 193 of file SCR_AIStaticArtilleryActivity.c.

◆ OnChildBehaviorFinished()

override void SCR_AIStaticArtilleryActivity::OnChildBehaviorFinished ( SCR_AIBehaviorBase childBehavior)
inlineprotected

Called by agent when he failed his behavior related to this activity.

Definition at line 207 of file SCR_AIStaticArtilleryActivity.c.

◆ SendMessages()

void SCR_AIStaticArtilleryActivity::SendMessages ( notnull array< ref SCR_AIGroupVehicle > turrets,
notnull array< AIAgent > assignedAgents )
inlineprotected

Definition at line 166 of file SCR_AIStaticArtilleryActivity.c.

Member Data Documentation

◆ m_aAssignedAgents

ref array<AIAgent> SCR_AIStaticArtilleryActivity::m_aAssignedAgents = {}
protected

Definition at line 9 of file SCR_AIStaticArtilleryActivity.c.

◆ m_aFailedAgents

ref array<AIAgent> SCR_AIStaticArtilleryActivity::m_aFailedAgents = {}
protected

Definition at line 10 of file SCR_AIStaticArtilleryActivity.c.

◆ m_eAmmoType

SCR_EAIArtilleryAmmoType SCR_AIStaticArtilleryActivity::m_eAmmoType
protected

Definition at line 5 of file SCR_AIStaticArtilleryActivity.c.

◆ m_iActualShotCount

int SCR_AIStaticArtilleryActivity::m_iActualShotCount
protected

Definition at line 11 of file SCR_AIStaticArtilleryActivity.c.

◆ m_iTargetShotCount

int SCR_AIStaticArtilleryActivity::m_iTargetShotCount
protected

Definition at line 6 of file SCR_AIStaticArtilleryActivity.c.

◆ m_vTargetPos

vector SCR_AIStaticArtilleryActivity::m_vTargetPos
protected

Definition at line 4 of file SCR_AIStaticArtilleryActivity.c.


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