Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Actions
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UDEPRECATED_PawnActionsComponent
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Actions/PawnActionsComponent.h |
| Include | #include "Actions/PawnActionsComponent.h" |
Syntax
class UDEPRECATED_PawnActionsComponent : public UActorComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FPawnActionEvent > | ActionEvents | ||
| TArray< FPawnActionStack > | ActionStacks | ||
| uint32: 1 | bLockedAILogic | Set when logic was locked by hi priority stack | |
| TObjectPtr< APawn > | ControlledPawn |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UDEPRECATED_PawnActionsComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint32 | AbortActionsInstigatedBy
(
UObject*const Instigator, |
Removes all actions instigated with Priority by Instigator | |
| APawn * | |||
| FString | DescribeEventType
(
EPawnActionEventType::Type EventType |
||
| void | DescribeSelfToVisLog
(
FVisualLogEntry* Snapshot |
||
| int32 | |||
| int32 | GetActionStackSize
(
EAIRequestPriority::Type Priority |
Debugging-testing purposes. | |
| UDEPRECATED_PawnAction * | GetActiveAction
(
EAIRequestPriority::Type Priority |
||
| APawn * | |||
| const APawn * | |||
| AController * | |||
| UDEPRECATED_PawnAction * | |||
| bool | HasActiveActionOfType
(
EAIRequestPriority::Type Priority, |
||
| EPawnActionAbortState::Type | K2_AbortAction
(
UDEPRECATED_PawnAction* ActionToAbort |
Aborts given action instance | |
| EPawnActionAbortState::Type | K2_ForceAbortAction
(
UDEPRECATED_PawnAction* ActionToAbort |
Aborts given action instance | |
| bool | K2_PerformAction
(
APawn* Pawn, |
||
| bool | K2_PushAction
(
UDEPRECATED_PawnAction* NewAction, |
||
| bool | OnEvent
(
UDEPRECATED_PawnAction& Action, |
||
| void | SetControlledPawn
(
APawn* NewPawn |
Use it to save component work to figure out what it's controlling or if component can't/won't be able to figure it out properly will throw a log warning if trying to set ControlledPawn if it's already set | |
| void | |||
| void | Finds the action that should be running. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnUnregister () |
UActorComponent. | |
| void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UDEPRECATED_PawnAction > | CurrentAction_DEPRECATED |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| EPawnActionAbortState::Type | AbortAction
(
UDEPRECATED_PawnAction& ActionToAbort |
PawnActions have been deprecated and are no longer being supported. It will get removed in following UE5 releases. Use GameplayTasks or AITasks instead. | |
| EPawnActionAbortState::Type | ForceAbortAction
(
UDEPRECATED_PawnAction& ActionToAbort |
PawnActions have been deprecated and are no longer being supported. It will get removed in following UE5 releases. Use GameplayTasks or AITasks instead. | |
| bool | PerformAction
(
APawn& Pawn, |
PawnActions have been deprecated and are no longer being supported. It will get removed in following UE5 releases. Use GameplayTasks or AITasks instead. | |
| bool | PushAction
(
UDEPRECATED_PawnAction& NewAction, |
PawnActions have been deprecated and are no longer being supported. It will get removed in following UE5 releases. Use GameplayTasks or AITasks instead. |