Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIAction.c File Reference

Go to the source code of this file.

Enumerations

enum  EAIActionFailReason {
  UNKNOWN , CANCELLED , TARGET_UNREACHABLE , NO_AMMO ,
  ENTITY_DELETED
}
 Fail reasons of actions. They can be generic or specific to some behavior. More...

Functions

override float EvaluatePriorityLevel ()
void SetPriorityLevel (int priority)
EAIActionFailReason GetFailReason ()
void SetFailReason (EAIActionFailReason failReason)
 Fail reason is an optional value which can be used to figure out why action failed.
int GetCause ()
override void OnSetActionState (EAIActionState state)
override void OnSetSuspended (bool suspended)
override void OnComplete ()
override void OnFail ()
override void OnActionRemoved ()
string GetActionDebugInfo ()
string GetDebugPanelText ()
override void OnActionSelected ()
override void OnActionDeselected ()
void OnActionExecuted ()
void OnActionCompleted ()
void OnActionFailed ()
bool IsActionInterruptable ()
void SetActionInterruptable (bool IsInterruptable)
void SetParametersToBTVariables (SCR_AIActionTask node)
void GetParametersFromBTVariables (SCR_AIActionTask node)
TStringArray GetPortNames ()
float GetRestrictedPriorityLevel (float minimumLevel=PRIORITY_LEVEL_NORMAL)
 Limits priority level for actions such that those are performed in "NORMAL" and "PLAYER" priority level but not in "GAMEMASTER".

Variables

enum EAIActionFailReason PRIORITY_LEVEL_NORMAL = 0
bool m_bIsInterruptable = true
ref SCR_BTParam< floatm_fPriorityLevel = new SCR_BTParam<float>(SCR_AIActionTask.PRIORITY_LEVEL_PORT)
ResourceName m_sBehaviorTree
ref ScriptInvoker m_OnActionCompleted = new ScriptInvoker()
ref ScriptInvoker m_OnActionFailed = new ScriptInvoker()
ref array< SCR_BTParamBasem_aParams = {}
EAIActionFailReason m_eFailReason

Enumeration Type Documentation

◆ EAIActionFailReason

Fail reasons of actions. They can be generic or specific to some behavior.

Enumerator
UNKNOWN 
CANCELLED 
TARGET_UNREACHABLE 
NO_AMMO 
ENTITY_DELETED 

Definition at line 2 of file SCR_AIAction.c.

Function Documentation

◆ EvaluatePriorityLevel()

override float EvaluatePriorityLevel ( )
protected

Definition at line 101 of file SCR_AIAction.c.

◆ GetActionDebugInfo()

string GetActionDebugInfo ( )
protected

Definition at line 185 of file SCR_AIAction.c.

◆ GetCause()

int GetCause ( )
protected

Returns cause value, used for SCR_AISetting. The return value should tell for which reason this action is being executed, to decide if certain SCR_AISetting can be applied when this action runs, or not.

Definition at line 129 of file SCR_AIAction.c.

◆ GetDebugPanelText()

string GetDebugPanelText ( )
protected

Definition at line 190 of file SCR_AIAction.c.

◆ GetFailReason()

EAIActionFailReason GetFailReason ( )
protected

Definition at line 113 of file SCR_AIAction.c.

◆ GetParametersFromBTVariables()

void GetParametersFromBTVariables ( SCR_AIActionTask node)
protected

Definition at line 230 of file SCR_AIAction.c.

◆ GetPortNames()

TStringArray GetPortNames ( )
protected

Definition at line 238 of file SCR_AIAction.c.

◆ GetRestrictedPriorityLevel()

float GetRestrictedPriorityLevel ( float minimumLevel = PRIORITY_LEVEL_NORMAL)
protected

Limits priority level for actions such that those are performed in "NORMAL" and "PLAYER" priority level but not in "GAMEMASTER".

Definition at line 248 of file SCR_AIAction.c.

◆ IsActionInterruptable()

bool IsActionInterruptable ( )
protected

Definition at line 208 of file SCR_AIAction.c.

◆ OnActionCompleted()

void OnActionCompleted ( )
protected

Definition at line 202 of file SCR_AIAction.c.

◆ OnActionDeselected()

override void OnActionDeselected ( )
protected

Definition at line 196 of file SCR_AIAction.c.

◆ OnActionExecuted()

void OnActionExecuted ( )
protected

Definition at line 199 of file SCR_AIAction.c.

◆ OnActionFailed()

void OnActionFailed ( )
protected

Definition at line 205 of file SCR_AIAction.c.

◆ OnActionRemoved()

override void OnActionRemoved ( )
protected

Definition at line 177 of file SCR_AIAction.c.

◆ OnActionSelected()

override void OnActionSelected ( )
protected

Definition at line 193 of file SCR_AIAction.c.

◆ OnComplete()

override void OnComplete ( )
protected

Definition at line 157 of file SCR_AIAction.c.

◆ OnFail()

override void OnFail ( )
protected

Definition at line 167 of file SCR_AIAction.c.

◆ OnSetActionState()

override void OnSetActionState ( EAIActionState state)
protected

Definition at line 141 of file SCR_AIAction.c.

◆ OnSetSuspended()

override void OnSetSuspended ( bool suspended)
protected

Definition at line 149 of file SCR_AIAction.c.

◆ SetActionInterruptable()

void SetActionInterruptable ( bool IsInterruptable)
protected

Definition at line 214 of file SCR_AIAction.c.

◆ SetFailReason()

void SetFailReason ( EAIActionFailReason failReason)
protected

Fail reason is an optional value which can be used to figure out why action failed.

Definition at line 120 of file SCR_AIAction.c.

◆ SetParametersToBTVariables()

void SetParametersToBTVariables ( SCR_AIActionTask node)
protected

Definition at line 223 of file SCR_AIAction.c.

◆ SetPriorityLevel()

void SetPriorityLevel ( int priority)
protected

Definition at line 107 of file SCR_AIAction.c.

Variable Documentation

◆ m_aParams

ref array<SCR_BTParamBase> m_aParams = {}
protected

Definition at line 96 of file SCR_AIAction.c.

◆ m_bIsInterruptable

bool m_bIsInterruptable = true

Definition at line 86 of file SCR_AIAction.c.

◆ m_eFailReason

EAIActionFailReason m_eFailReason
protected

Definition at line 98 of file SCR_AIAction.c.

◆ m_fPriorityLevel

float m_fPriorityLevel = new SCR_BTParam<float>(SCR_AIActionTask.PRIORITY_LEVEL_PORT)
protected

Definition at line 87 of file SCR_AIAction.c.

◆ m_OnActionCompleted

ref ScriptInvoker m_OnActionCompleted = new ScriptInvoker()
protected

Definition at line 91 of file SCR_AIAction.c.

◆ m_OnActionFailed

ref ScriptInvoker m_OnActionFailed = new ScriptInvoker()
protected

Definition at line 92 of file SCR_AIAction.c.

◆ m_sBehaviorTree

ResourceName m_sBehaviorTree
protected

Definition at line 89 of file SCR_AIAction.c.

◆ PRIORITY_LEVEL_NORMAL

enum EAIActionFailReason PRIORITY_LEVEL_NORMAL = 0