Class BTTask_BlueprintBase
Base class for blueprint based task nodes.
Inherited Members
Namespace: UE4.AIModule
Assembly: UE4DotNet.dll
Syntax
public class BTTask_BlueprintBase : BTTaskNode
Remarks
Do NOT use it for creating native c++ classes!
When task receives Abort event, all latent actions associated this instance are being removed. This prevents from resuming activity started by Execute, but does not handle external events. Please use them safely (unregister at abort) and call IsTaskExecuting() when in doubt.
Properties
| Improve this Doc View SourceActorOwner
Cached actor owner of BehaviorTreeComponent.
Declaration
public Actor ActorOwner { get; set; }
Property Value
Type | Description |
---|---|
Actor |
AIOwner
Cached AIController owner of BehaviorTreeComponent.
Declaration
public AIController AIOwner { get; set; }
Property Value
Type | Description |
---|---|
AIController |
bShowPropertyDetails
Declaration
public bool bShowPropertyDetails { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static BTTask_BlueprintBase DefaultObject { get; }
Property Value
Type | Description |
---|---|
BTTask_BlueprintBase |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceFinishAbort()
aborts task execution
Declaration
public void FinishAbort()
FinishExecute(Boolean)
finishes task execution with Success or Fail result
Declaration
public void FinishExecute(bool bSuccess)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bSuccess |
IsTaskAborting()
check if task is currently being aborted
Declaration
public bool IsTaskAborting()
Returns
Type | Description |
---|---|
System.Boolean |
IsTaskExecuting()
check if task is currently being executed
Declaration
public bool IsTaskExecuting()
Returns
Type | Description |
---|---|
System.Boolean |
New(UObject, Name)
Spawn an object of this class
Declaration
public static BTTask_BlueprintBase New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
BTTask_BlueprintBase |
SetFinishOnMessage(Name)
task execution will be finished (with result 'Success') after receiving specified message
Declaration
public void SetFinishOnMessage(Name MessageName)
Parameters
Type | Name | Description |
---|---|---|
Name | MessageName |
SetFinishOnMessageWithId(Name, Int32)
task execution will be finished (with result 'Success') after receiving specified message with indicated ID
Declaration
public void SetFinishOnMessageWithId(Name MessageName, int RequestID)
Parameters
Type | Name | Description |
---|---|---|
Name | MessageName | |
System.Int32 | RequestID |
Events
| Improve this Doc View SourceReceiveAbort
if blueprint graph contains this event, task will stay active until FinishAbort is called @
Declaration
public event BTTask_BlueprintBase.ReceiveAbort_delegate ReceiveAbort
Event Type
Type | Description |
---|---|
BTTask_BlueprintBase.ReceiveAbort_delegate |
Remarks
Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
ReceiveAbortAI
Alternative AI version of ReceiveAbort @
Declaration
public event BTTask_BlueprintBase.ReceiveAbortAI_delegate ReceiveAbortAI
Event Type
Type | Description |
---|---|
BTTask_BlueprintBase.ReceiveAbortAI_delegate |
Remarks
see ReceiveAbort for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
ReceiveExecute
entry point, task will stay active until FinishExecute is called.
Declaration
public event BTTask_BlueprintBase.ReceiveExecute_delegate ReceiveExecute
Event Type
Type | Description |
---|---|
BTTask_BlueprintBase.ReceiveExecute_delegate |
Remarks
@Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
ReceiveExecuteAI
Alternative AI version of ReceiveExecute @
Declaration
public event BTTask_BlueprintBase.ReceiveExecuteAI_delegate ReceiveExecuteAI
Event Type
Type | Description |
---|---|
BTTask_BlueprintBase.ReceiveExecuteAI_delegate |
Remarks
see ReceiveExecute for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
ReceiveTick
tick function @
Declaration
public event BTTask_BlueprintBase.ReceiveTick_delegate ReceiveTick
Event Type
Type | Description |
---|---|
BTTask_BlueprintBase.ReceiveTick_delegate |
Remarks
Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
ReceiveTickAI
Alternative AI version of tick function.
Declaration
public event BTTask_BlueprintBase.ReceiveTickAI_delegate ReceiveTickAI
Event Type
Type | Description |
---|---|
BTTask_BlueprintBase.ReceiveTickAI_delegate |
Remarks
@see ReceiveTick for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
Operators
| Improve this Doc View SourceImplicit(IntPtr to BTTask_BlueprintBase)
Convert from IntPtr to UObject
Declaration
public static implicit operator BTTask_BlueprintBase(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
BTTask_BlueprintBase |