Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_AISearchAndDestroyActivity Interface Reference
Inheritance diagram for SCR_AISearchAndDestroyActivity:
SCR_AIActivityBase SCR_AIActionBase AIActionBase

Public Member Functions

void InitParameters (vector position, IEntity entity)
 
void SCR_AISearchAndDestroyActivity (SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint, vector pos, IEntity ent, EMovementType movementType=EMovementType.RUN, bool useVehicles=false, float priority=PRIORITY_ACTIVITY_SEEK_AND_DESTROY, float priorityLevel=PRIORITY_LEVEL_NORMAL)
 
override void OnActionSelected ()
 
override float CustomEvaluate ()
 
override void OnChildBehaviorFinished (SCR_AIBehaviorBase childBehavior)
 
override void OnActionFailed ()
 
override void OnActionDeselected ()
 
override string GetActionDebugInfo ()
 
- Public Member Functions inherited from SCR_AIActivityBase
array< ref SCR_AIActivityFeatureBaseGetActivityFeatures ()
 
SCR_AIActivityFeatureBase FindActivityFeature (TypeName featureType)
 
void InitParameters (AIWaypoint relatedWaypoint)
 
void SCR_AIActivityBase (SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint)
 
void OnChildBehaviorCreated (SCR_AIBehaviorBase childBehavior)
 
- Public Member Functions inherited from SCR_AIActionBase
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 ()
 Returns cause value, used for SCR_AISetting.
 
override void OnSetActionState (EAIActionState state)
 
override void OnSetSuspended (bool suspended)
 
override void OnComplete ()
 
override void OnFail ()
 
override void OnActionRemoved ()
 
string GetDebugPanelText ()
 
void OnActionExecuted ()
 
void OnActionCompleted ()
 
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".
 
- Public Member Functions inherited from AIActionBase
proto external float Evaluate ()
 
proto external float GetPriority ()
 
proto external void SetPriority (float priority)
 
proto external bool GetActionIsSuspended ()
 
proto external void SetActionIsSuspended (bool val)
 
proto external bool GetIsUniqueInActionQueue ()
 
proto external void SetIsUniqueInActionQueue (bool unique)
 
proto external EAIActionState GetActionState ()
 
proto external void SetActionState (EAIActionState state)
 
proto external void Fail ()
 
proto external void Complete ()
 
proto external bool GetRemoveAction ()
 
proto external void SetRemoveAction (bool val)
 
proto external ref AIActionBase GetRelatedGroupActivity ()
 
proto external void SetRelatedGroupActivity (AIActionBase related)
 
bool OnMessage (AIMessage msg)
 

Protected Member Functions

void GenerateInvestigationGrid ()
 
bool LoadTiles ()
 
void AdjustInvestigationPositions ()
 
void AssignInvestigationPositions (SCR_AIGroupFireteam ft)
 
void OnWaypointPropertiesChanged ()
 
- Protected Member Functions inherited from SCR_AIActivityBase
void SendCancelMessagesToAllAgents ()
 

Protected Attributes

ref SCR_BTParamAssignable< vector > m_vPosition = new SCR_BTParamAssignable<vector>(SCR_AIActionTask.POSITION_PORT)
 
ref SCR_BTParam< IEntity > m_Entity = new SCR_BTParam<IEntity>(SCR_AIActionTask.ENTITY_PORT)
 
SCR_AIGroup m_Group
 
SCR_SearchAndDestroyWaypoint m_WP
 
AIPathfindingComponent m_pathFindindingComp
 
vector m_vGridOrigin
 
ref array< ref vector > m_aTiles = {}
 
bool m_bAllTilesLoaded
 
ref array< vector > m_aCorrectedPositions = {}
 
ref array< vector > m_aAvailablePositions = {}
 
ref array< vector > m_aAssignedPositions = {}
 
float m_fHoldingTime = 600.0
 
float m_fStartTime
 
float m_fTimeStamp
 
ref array< ref Shape > m_aDbgShape = {}
 
- Protected Attributes inherited from SCR_AIActionBase
ref SCR_BTParam< float > m_fPriorityLevel = new SCR_BTParam<float>(SCR_AIActionTask.PRIORITY_LEVEL_PORT)
 
EAIActionFailReason m_eFailReason
 

Static Protected Attributes

const float m_fBehaviorRadius = 3
 

Additional Inherited Members

- Public Attributes inherited from SCR_AIActivityBase
SCR_AIGroupUtilityComponent m_Utility
 
ref SCR_BTParam< bool > m_bIsWaypointRelated = new SCR_BTParam<bool>(SCR_AIActionTask.WAYPOINT_RELATED_PORT)
 
AIWaypoint m_RelatedWaypoint = null
 
bool m_bAllowFireteamRebalance = true
 
- Public Attributes inherited from SCR_AIActionBase
bool m_bIsInterruptable = true
 
ResourceName m_sBehaviorTree
 
ref ScriptInvoker m_OnActionCompleted = new ScriptInvoker()
 
ref ScriptInvoker m_OnActionFailed = new ScriptInvoker()
 
ref array< SCR_BTParamBasem_aParams = {}
 
- Static Public Attributes inherited from SCR_AIActionBase
const static float PRIORITY_LEVEL_NORMAL = 0
 
const static float PRIORITY_LEVEL_PLAYER = 1000
 
const static float PRIORITY_LEVEL_GAMEMASTER = 2000
 
const static float PRIORITY_BEHAVIOR_RETREAT_MELEE = 190 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_AVOID_CHARACTER = 180 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_GET_OUT_VEHICLE_HIGH_PRIORITY = 162 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_MOVE_FROM_DANGER = 160 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_ATTACK_HIGH_PRIORITY = 120 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_HEAL_HIGH_PRIORITY = 115 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_OBSERVE_UNKNOWN_FIRE_HIGH_PRIORITY = 113 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_GET_IN_VEHICLE = 130
 
const static float PRIORITY_BEHAVIOR_GET_OUT_VEHICLE = 125
 
const static float PRIORITY_BEHAVIOR_PICKUP_INVENTORY_ITEMS = 118
 
const static float PRIORITY_BEHAVIOR_STATIC_ARTILLERY = 114
 
const static float PRIORITY_BEHAVIOR_FIRE_ILLUM_FLARE = 113
 
const static float PRIORITY_BEHAVIOR_THROW_GRENADE = 112
 
const static float PRIORITY_BEHAVIOR_MEDIC_HEAL = 111
 
const static float PRIORITY_BEHAVIOR_RETREAT_FROM_TARGET = 110
 
const static float PRIORITY_BEHAVIOR_PROVIDE_AMMO = 100
 
const static float PRIORITY_BEHAVIOR_ATTACK_SELECTED = 90
 
const static float PRIORITY_BEHAVIOR_HEAL_WAIT = 83
 
const static float PRIORITY_BEHAVIOR_MOVE_FROM_VEHICLE_HORN = 72
 
const static float PRIORITY_BEHAVIOR_ATTACK_NOT_SELECTED = 70
 
const static float PRIORITY_BEHAVIOR_OBSERVE_THREATS_HIGH_PRIORITY = 69
 
const static float PRIORITY_BEHAVIOR_MOVE_FROM_UNKNOWN_FIRE = 68
 
const static float PRIORITY_BEHAVIOR_OBSERVE_UNKNOWN_FIRE = 66
 
const static float PRIORITY_BEHAVIOR_HEAL = 65
 
const static float PRIORITY_BEHAVIOR_MOVE_AND_INVESTIGATE = 64
 
const static float PRIORITY_BEHAVIOR_SUPPRESS = 63
 
const static float PRIORITY_BEHAVIOR_DEFEND = 61
 
const static float PRIORITY_BEHAVIOR_FIND_FIRE_POSITION = 60
 
const static float PRIORITY_BEHAVIOR_OBSERVE_LOW_PRIORITY = 59
 
const static float PRIORITY_BEHAVIOR_MOVE_INDIVIDUALLY = 58
 
const static float PRIORITY_BEHAVIOR_OPEN_NAVLINK_DOOR = 54
 
const static float PRIORITY_BEHAVIOR_PERFORM_ACTION = 30
 
const static float PRIORITY_BEHAVIOR_MOVE = 30
 
const static float PRIORITY_BEHAVIOR_MOVE_IN_FORMATION = 30
 
const static float PRIORITY_BEHAVIOR_ATTACK_DISREGARD_THREATS = 20
 
const static float PRIORITY_BEHAVIOR_WAIT = 10
 
const static float PRIORITY_BEHAVIOR_OBSERVE_THREATS_LOW_PRIORITY = 4
 
const static float PRIORITY_BEHAVIOR_MOVE_IN_FORMATION_LOW_PRIORITY = 3
 
const static float PRIORITY_BEHAVIOR_IDLE_DRIVER = 2
 
const static float PRIORITY_BEHAVIOR_ANIMATE = 1.5
 
const static float PRIORITY_BEHAVIOR_IDLE = 1
 
const static float PRIORITY_BEHAVIOR_DISMOUNT_TURRET = 300
 
const static float PRIORITY_BEHAVIOR_DISMOUNT_TURRET_INVESTIGATE = 21
 
const static float PRIORITY_BEHAVIOR_DISMOUNT_TURRET_GET_IN = 20
 
const static float PRIORITY_ACTIVITY_GET_IN = 130
 
const static float PRIORITY_ACTIVITY_FOLLOW = 130
 
const static float PRIORITY_ACTIVITY_RESUPPLY = 100
 
const static float PRIORITY_ACTIVITY_COMBAT_WITH_VEHICLES = 85
 
const static float PRIORITY_ACTIVITY_HEAL = 80
 
const static float PRIORITY_ACTIVITY_ARTILLERY_SUPPORT = 75
 
const static float PRIORITY_ACTIVITY_ATTACK_CLUSTER = 70
 
const static float PRIORITY_ACTIVITY_SEEK_AND_DESTROY = 60
 
const static float PRIORITY_ACTIVITY_INVESTIGATE_CLUSTER = 55
 
const static float PRIORITY_ACTIVITY_DEFEND_FROM_CLUSTER = 55
 
const static float PRIORITY_ACTIVITY_MOVE = 50
 
const static float PRIORITY_ACTIVITY_PERFORM_ACTION = 50
 
const static float PRIORITY_ACTIVITY_DEFEND = 50
 
const static float PRIORITY_ACTIVITY_GET_OUT = 50
 
const static float PRIORITY_ACTIVITY_SUPPRESS = 40
 
const static float PRIORITY_ACTIVITY_ANIMATE = 10
 

Constructor & Destructor Documentation

◆ SCR_AISearchAndDestroyActivity()

void SCR_AISearchAndDestroyActivity.SCR_AISearchAndDestroyActivity ( SCR_AIGroupUtilityComponent utility,
AIWaypoint relatedWaypoint,
vector pos,
IEntity ent,
EMovementType movementType = EMovementType::RUN,
bool useVehicles = false,
float priority = PRIORITY_ACTIVITY_SEEK_AND_DESTROY,
float priorityLevel = PRIORITY_LEVEL_NORMAL )

Member Function Documentation

◆ AdjustInvestigationPositions()

void SCR_AISearchAndDestroyActivity.AdjustInvestigationPositions ( )
protected

◆ AssignInvestigationPositions()

void SCR_AISearchAndDestroyActivity.AssignInvestigationPositions ( SCR_AIGroupFireteam ft)
protected

◆ CustomEvaluate()

override float SCR_AISearchAndDestroyActivity.CustomEvaluate ( )

Implements AIActionBase.

◆ GenerateInvestigationGrid()

void SCR_AISearchAndDestroyActivity.GenerateInvestigationGrid ( )
protected

◆ GetActionDebugInfo()

override string SCR_AISearchAndDestroyActivity.GetActionDebugInfo ( )

Implements SCR_AIActionBase.

◆ InitParameters()

void SCR_AISearchAndDestroyActivity.InitParameters ( vector position,
IEntity entity )

◆ LoadTiles()

bool SCR_AISearchAndDestroyActivity.LoadTiles ( )
protected

◆ OnActionDeselected()

override void SCR_AISearchAndDestroyActivity.OnActionDeselected ( )

Implements SCR_AIActionBase.

◆ OnActionFailed()

override void SCR_AISearchAndDestroyActivity.OnActionFailed ( )

Implements SCR_AIActionBase.

◆ OnActionSelected()

override void SCR_AISearchAndDestroyActivity.OnActionSelected ( )

Implements SCR_AIActionBase.

◆ OnChildBehaviorFinished()

override void SCR_AISearchAndDestroyActivity.OnChildBehaviorFinished ( SCR_AIBehaviorBase childBehavior)

Implements SCR_AIActivityBase.

◆ OnWaypointPropertiesChanged()

void SCR_AISearchAndDestroyActivity.OnWaypointPropertiesChanged ( )
protected

Member Data Documentation

◆ m_aAssignedPositions

ref array<vector> SCR_AISearchAndDestroyActivity.m_aAssignedPositions = {}
protected

◆ m_aAvailablePositions

ref array<vector> SCR_AISearchAndDestroyActivity.m_aAvailablePositions = {}
protected

◆ m_aCorrectedPositions

ref array<vector> SCR_AISearchAndDestroyActivity.m_aCorrectedPositions = {}
protected

◆ m_aDbgShape

ref array<ref Shape> SCR_AISearchAndDestroyActivity.m_aDbgShape = {}
protected

◆ m_aTiles

ref array<ref vector> SCR_AISearchAndDestroyActivity.m_aTiles = {}
protected

◆ m_bAllTilesLoaded

bool SCR_AISearchAndDestroyActivity.m_bAllTilesLoaded
protected

◆ m_Entity

ref SCR_BTParam<IEntity> SCR_AISearchAndDestroyActivity.m_Entity = new SCR_BTParam<IEntity>(SCR_AIActionTask.ENTITY_PORT)
protected

◆ m_fBehaviorRadius

const float SCR_AISearchAndDestroyActivity.m_fBehaviorRadius = 3
staticprotected

◆ m_fHoldingTime

float SCR_AISearchAndDestroyActivity.m_fHoldingTime = 600.0
protected

◆ m_fStartTime

float SCR_AISearchAndDestroyActivity.m_fStartTime
protected

◆ m_fTimeStamp

float SCR_AISearchAndDestroyActivity.m_fTimeStamp
protected

◆ m_Group

SCR_AIGroup SCR_AISearchAndDestroyActivity.m_Group
protected

◆ m_pathFindindingComp

AIPathfindingComponent SCR_AISearchAndDestroyActivity.m_pathFindindingComp
protected

◆ m_vGridOrigin

vector SCR_AISearchAndDestroyActivity.m_vGridOrigin
protected

◆ m_vPosition

ref SCR_BTParamAssignable<vector> SCR_AISearchAndDestroyActivity.m_vPosition = new SCR_BTParamAssignable<vector>(SCR_AIActionTask.POSITION_PORT)
protected

◆ m_WP

SCR_SearchAndDestroyWaypoint SCR_AISearchAndDestroyActivity.m_WP
protected

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