Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AIBaseUtilityComponent Interface Reference
Inheritance diagram for AIBaseUtilityComponent:
[legend]

Public Member Functions

proto external AIActionBase EvaluateActions ()
 Evaluate all actions and return the highest evaluated action which is not suspended. Returns nullptr if none found.
 
proto external void AddAction (AIActionBase action)
 Adds an action.
 
proto external bool RemoveObsoleteActions ()
 Removes actions which are failed or completed.
 
proto external void SetStateAllActionsOfType (TypeName actionType, EAIActionState actionState, bool includeInherited=false)
 Iterates through the actions changing the state of those of the type or that inherit from it.
 
proto external bool HasActionOfType (TypeName actionType)
 Returns true when there is an action of exactly this type.
 
proto external AIActionBase FindActionOfType (TypeName actionType)
 Finds action of exactly this type.
 
proto external AIActionBase FindActionOfInheritedType (TypeName actionType)
 Finds action of provided type or a type inherited from it.
 
proto external void FindActionsOfType (TypeName actionType, notnull array< ref AIActionBase > outActions)
 
proto external void FindActionsOfInheritedType (TypeName actionType, notnull array< ref AIActionBase > outActions)
 
proto external void SetStateOfRelatedAction (AIActionBase relatedAction, EAIActionState state)
 
proto external bool CallActionsOnMessage (AIMessage msg)
 
proto external void GetActions (notnull array< ref AIActionBase > outActions)
 
proto external ref AIActionBase GetCurrentAction ()
 
proto external void SetCurrentAction (AIActionBase executed)
 
proto external ref AIActionBase GetExecutedAction ()
 
proto external void SetExecutedAction (AIActionBase executed)
 
proto external AIAgent GetOwner ()
 
void EOnInit (IEntity owner)
 
void OnPostInit (IEntity owner)
 
void EOnDeactivate (IEntity owner)
 
void EOnDiag (IEntity owner, float timeSlice)
 
void EOnActivate (IEntity owner)
 

Member Function Documentation

◆ AddAction()

proto external void AIBaseUtilityComponent.AddAction ( AIActionBase  action)

Adds an action.

◆ CallActionsOnMessage()

proto external bool AIBaseUtilityComponent.CallActionsOnMessage ( AIMessage  msg)

◆ EOnActivate()

void AIBaseUtilityComponent.EOnActivate ( IEntity  owner)

◆ EOnDeactivate()

void AIBaseUtilityComponent.EOnDeactivate ( IEntity  owner)

◆ EOnDiag()

void AIBaseUtilityComponent.EOnDiag ( IEntity  owner,
float  timeSlice 
)

◆ EOnInit()

void AIBaseUtilityComponent.EOnInit ( IEntity  owner)

◆ EvaluateActions()

proto external AIActionBase AIBaseUtilityComponent.EvaluateActions ( )

Evaluate all actions and return the highest evaluated action which is not suspended. Returns nullptr if none found.

◆ FindActionOfInheritedType()

proto external AIActionBase AIBaseUtilityComponent.FindActionOfInheritedType ( TypeName  actionType)

Finds action of provided type or a type inherited from it.

◆ FindActionOfType()

proto external AIActionBase AIBaseUtilityComponent.FindActionOfType ( TypeName  actionType)

Finds action of exactly this type.

◆ FindActionsOfInheritedType()

proto external void AIBaseUtilityComponent.FindActionsOfInheritedType ( TypeName  actionType,
notnull array< ref AIActionBase outActions 
)

◆ FindActionsOfType()

proto external void AIBaseUtilityComponent.FindActionsOfType ( TypeName  actionType,
notnull array< ref AIActionBase outActions 
)

◆ GetActions()

proto external void AIBaseUtilityComponent.GetActions ( notnull array< ref AIActionBase outActions)

◆ GetCurrentAction()

proto external ref AIActionBase AIBaseUtilityComponent.GetCurrentAction ( )

◆ GetExecutedAction()

proto external ref AIActionBase AIBaseUtilityComponent.GetExecutedAction ( )

◆ GetOwner()

proto external AIAgent AIBaseUtilityComponent.GetOwner ( )

◆ HasActionOfType()

proto external bool AIBaseUtilityComponent.HasActionOfType ( TypeName  actionType)

Returns true when there is an action of exactly this type.

◆ OnPostInit()

void AIBaseUtilityComponent.OnPostInit ( IEntity  owner)

◆ RemoveObsoleteActions()

proto external bool AIBaseUtilityComponent.RemoveObsoleteActions ( )

Removes actions which are failed or completed.

◆ SetCurrentAction()

proto external void AIBaseUtilityComponent.SetCurrentAction ( AIActionBase  executed)

◆ SetExecutedAction()

proto external void AIBaseUtilityComponent.SetExecutedAction ( AIActionBase  executed)

◆ SetStateAllActionsOfType()

proto external void AIBaseUtilityComponent.SetStateAllActionsOfType ( TypeName  actionType,
EAIActionState  actionState,
bool  includeInherited = false 
)

Iterates through the actions changing the state of those of the type or that inherit from it.

◆ SetStateOfRelatedAction()

proto external void AIBaseUtilityComponent.SetStateOfRelatedAction ( AIActionBase  relatedAction,
EAIActionState  state 
)

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