查看: 396|回复: 7

[引擎各个功能] 【12.创建 Task 节点 | Unreal Engine】

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
75866
发表于 2016-6-25 14:03:21 | 显示全部楼层 |阅读模式



Previous Step
Next Step



   
Quick Start Home


Task 是真正“执行”操作的节点,如移动 AI,或调整黑板值。它们可以被 Decorators 附着。

这里的这个 Task 实际上是 Move To 节点的新形态,主要的不同点是:Task 节点将指引 AI 向玩家的 Pawn 前进,而非向其所在位置前进。此外,它有助于分解任务,并确认如未执行 Finish Execute,Task 节点将继续进行处理,AI MoveTo 节点完整地展示了这点。
步骤
在 内容浏览器 中 双击 打开 FollowerBT 行为树。

点击 New Task 按钮。

它将创建于和行为树相同的文件夹中。

在 内容浏览器 中将其重命名为 “RapidMoveTo”。

编辑器应已将其打开以便编辑。如尚未打开,在 内容浏览器 中 双击 打开。

创建如下图表:
     p').length != 0) { copyToClipboard($('#fullgraphBTService12_snippet > p').html()); } else { copyToClipboard($('#fullgraphBTService12_snippet').html()); }Copy Example   
【虚幻4翻译文档-12.创建 Task 节点 | Unreal Engine】[虚幻4中文文档]



    Begin Object Class=K2Node_Event Name="K2Node_Event_845"   Begin Object Class=EdGraphPin Name="EdGraphPin_4172"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4173"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4174"   End Object   Begin Object Name="EdGraphPin_4172"      PinName="OutputDelegate"      Direction=EGPD_Output      PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParentClass=Class'/Script/AIModule.BTTask_BlueprintBase',MemberName="ReceiveExecute"))   End Object   Begin Object Name="EdGraphPin_4173"      PinName="then"      Direction=EGPD_Output      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_IfThenElse_100.EdGraphPin_20069'   End Object   Begin Object Name="EdGraphPin_4174"      PinName="OwnerActor"      PinToolTip="Owner Actor\nActor Reference"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_1392.EdGraphPin_6850'   End Object   EventSignatureName="ReceiveExecute"   EventSignatureClass=Class'/Script/AIModule.BTTask_BlueprintBase'   bOverrideFunction=True   Pins(0)=EdGraphPin'EdGraphPin_4172'   Pins(1)=EdGraphPin'EdGraphPin_4173'   Pins(2)=EdGraphPin'EdGraphPin_4174'   NodePosX=-352   NodePosY=64   NodeGuid=6739971B49CD20A6D2ACF6B441AF6A7AEnd ObjectBegin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_123126"   Begin Object Class=EdGraphPin Name="EdGraphPin_4076"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4077"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4078"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4079"   End Object   Begin Object Name="EdGraphPin_4076"      PinName="execute"      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_AIMoveTo_42.EdGraphPin_4112'   End Object   Begin Object Name="EdGraphPin_4077"      PinName="then"      Direction=EGPD_Output      PinType=(PinCategory="exec")   End Object   Begin Object Name="EdGraphPin_4078"      PinName="self"      PinFriendlyName="Target"      PinToolTip="Target\nBTTask Blueprint Base Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/AIModule.BTTask_BlueprintBase')   End Object   Begin Object Name="EdGraphPin_4079"      PinName="bSuccess"      PinToolTip="Success\nBoolean"      PinType=(PinCategory="bool")      DefaultValue="true"      AutogeneratedDefaultValue="false"   End Object   FunctionReference=(MemberName="FinishExecute",bSelfContext=True)   Pins(0)=EdGraphPin'EdGraphPin_4076'   Pins(1)=EdGraphPin'EdGraphPin_4077'   Pins(2)=EdGraphPin'EdGraphPin_4078'   Pins(3)=EdGraphPin'EdGraphPin_4079'   NodePosX=1440   NodeGuid=81BF51914D95508F36CB2387949AA34FEnd ObjectBegin Object Class=K2Node_DynamicCast Name="K2Node_DynamicCast_1392"   Begin Object Class=EdGraphPin Name="EdGraphPin_6847"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_6848"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_6849"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_6850"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_6851"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_6852"   End Object   Begin Object Name="EdGraphPin_6847"      PinName="execute"      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_IfThenElse_100.EdGraphPin_20072'   End Object   Begin Object Name="EdGraphPin_6848"      PinName="then"      Direction=EGPD_Output      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_421.EdGraphPin_4143'   End Object   Begin Object Name="EdGraphPin_6849"      PinName="CastFailed"      Direction=EGPD_Output      PinType=(PinCategory="exec")   End Object   Begin Object Name="EdGraphPin_6850"      PinName="Object"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')      LinkedTo(0)=EdGraphPin'K2Node_Event_845.EdGraphPin_4174'   End Object   Begin Object Name="EdGraphPin_6851"      PinName="AsFollower AI CON"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/Follower_AI_Con.Follower_AI_CON_C')      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_421.EdGraphPin_4145'   End Object   Begin Object Name="EdGraphPin_6852"      PinName="bSuccess"      Direction=EGPD_Output      PinType=(PinCategory="bool")      bHidden=True   End Object   TargetType=BlueprintGeneratedClass'/Game/Blueprints/AI/Follower_AI_Con.Follower_AI_CON_C'   Pins(0)=EdGraphPin'EdGraphPin_6847'   Pins(1)=EdGraphPin'EdGraphPin_6848'   Pins(2)=EdGraphPin'EdGraphPin_6849'   Pins(3)=EdGraphPin'EdGraphPin_6850'   Pins(4)=EdGraphPin'EdGraphPin_6851'   Pins(5)=EdGraphPin'EdGraphPin_6852'   NodePosX=400   NodePosY=64   NodeGuid=7FB506C8481E3974BAB151A7A93C47BAEnd ObjectBegin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_123506"   Begin Object Class=EdGraphPin Name="EdGraphPin_4104"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4105"   End Object   Begin Object Name="EdGraphPin_4104"      PinName="self"      PinFriendlyName="Target"      PinToolTip="Target\nController Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Controller')      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_265.EdGraphPin_20067'   End Object   Begin Object Name="EdGraphPin_4105"      PinName="ReturnValue"      PinToolTip="Return Value\nPawn Reference"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Pawn')      LinkedTo(0)=EdGraphPin'K2Node_AIMoveTo_42.EdGraphPin_4116'   End Object   bIsPureFunc=True   bIsConstFunc=True   FunctionReference=(MemberParentClass=Class'/Script/Engine.Controller',MemberName="K2_GetPawn")   Pins(0)=EdGraphPin'EdGraphPin_4104'   Pins(1)=EdGraphPin'EdGraphPin_4105'   NodePosX=784   NodePosY=176   NodeGuid=27431F034F88EB67FFA2BF9C9F7C776DEnd ObjectBegin Object Class=K2Node_AIMoveTo Name="K2Node_AIMoveTo_42"   Begin Object Class=EdGraphPin Name="EdGraphPin_4110"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4111"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4112"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4113"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4114"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4115"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4116"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4117"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4118"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4119"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4120"   End Object   Begin Object Name="EdGraphPin_4110"      PinName="execute"      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_421.EdGraphPin_4144'      LinkedTo(1)=EdGraphPin'K2Node_IfThenElse_100.EdGraphPin_20071'   End Object   Begin Object Name="EdGraphPin_4111"      PinName="then"      Direction=EGPD_Output      PinType=(PinCategory="exec")   End Object   Begin Object Name="EdGraphPin_4112"      PinName="OnSuccess"      Direction=EGPD_Output      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_123126.EdGraphPin_4076'   End Object   Begin Object Name="EdGraphPin_4113"      PinName="OnFail"      Direction=EGPD_Output      PinType=(PinCategory="exec")   End Object   Begin Object Name="EdGraphPin_4114"      PinName="MovementResult"      Direction=EGPD_Output      PinType=(PinCategory="byte",PinSubCategoryObject=Enum'/Script/AIModule.PathFollowingComponent:EPathFollowingResult')   End Object   Begin Object Name="EdGraphPin_4115"      PinName="WorldContextObject"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')      DefaultValue="0"      bHidden=True   End Object   Begin Object Name="EdGraphPin_4116"      PinName="Pawn"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Pawn')      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_123506.EdGraphPin_4105'   End Object   Begin Object Name="EdGraphPin_4117"      PinName="Destination"      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Object:Vector')      DefaultValue="0, 0, 0"      AutogeneratedDefaultValue="0, 0, 0"   End Object   Begin Object Name="EdGraphPin_4118"      PinName="TargetActor"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_26123.EdGraphPin_4158'   End Object   Begin Object Name="EdGraphPin_4119"      PinName="AcceptanceRadius"      PinType=(PinCategory="float")      DefaultValue="50.000"      AutogeneratedDefaultValue="5.000000"   End Object   Begin Object Name="EdGraphPin_4120"      PinName="bStopOnOverlap"      PinType=(PinCategory="bool")      DefaultValue="false"      AutogeneratedDefaultValue="false"   End Object   Pins(0)=EdGraphPin'EdGraphPin_4110'   Pins(1)=EdGraphPin'EdGraphPin_4111'   Pins(2)=EdGraphPin'EdGraphPin_4112'   Pins(3)=EdGraphPin'EdGraphPin_4113'   Pins(4)=EdGraphPin'EdGraphPin_4114'   Pins(5)=EdGraphPin'EdGraphPin_4115'   Pins(6)=EdGraphPin'EdGraphPin_4116'   Pins(7)=EdGraphPin'EdGraphPin_4117'   Pins(8)=EdGraphPin'EdGraphPin_4118'   Pins(9)=EdGraphPin'EdGraphPin_4119'   Pins(10)=EdGraphPin'EdGraphPin_4120'   NodePosX=1104   ErrorType=1   ErrorMsg="Error Unexpected node type K2Node_AIMoveTo encountered at  AI MoveTo "   NodeGuid=E94A59B64BE284DD7C92E6B51454D074End ObjectBegin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_421"   Begin Object Class=EdGraphPin Name="EdGraphPin_4143"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4144"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4145"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4146"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4147"   End Object   Begin Object Name="EdGraphPin_4143"      PinName="execute"      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_1392.EdGraphPin_6848'   End Object   Begin Object Name="EdGraphPin_4144"      PinName="then"      Direction=EGPD_Output      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_AIMoveTo_42.EdGraphPin_4110'   End Object   Begin Object Name="EdGraphPin_4145"      PinName="AI_CON_Ref"      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/Follower_AI_Con.Follower_AI_CON_C')      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_1392.EdGraphPin_6851'   End Object   Begin Object Name="EdGraphPin_4146"      PinName="Output_Get"      PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/Follower_AI_Con.Follower_AI_CON_C')   End Object   Begin Object Name="EdGraphPin_4147"      PinName="self"      PinFriendlyName="Target"      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/RapidMoveTo.RapidMoveTo_C')      bHidden=True   End Object   VariableReference=(MemberName="AI_CON_Ref",bSelfContext=True)   Pins(0)=EdGraphPin'EdGraphPin_4143'   Pins(1)=EdGraphPin'EdGraphPin_4144'   Pins(2)=EdGraphPin'EdGraphPin_4145'   Pins(3)=EdGraphPin'EdGraphPin_4146'   Pins(4)=EdGraphPin'EdGraphPin_4147'   NodePosX=672   NodePosY=64   NodeGuid=D120D77248C9744E274BB8925D0FBE23End ObjectBegin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_26123"   Begin Object Class=EdGraphPin Name="EdGraphPin_4155"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4156"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4157"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4158"   End Object   Begin Object Name="EdGraphPin_4155"      PinName="self"      PinFriendlyName="Target"      PinToolTip="Target\nBTFunction Library Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/AIModule.BTFunctionLibrary')      DefaultObject=Default__BTFunctionLibrary      bHidden=True   End Object   Begin Object Name="EdGraphPin_4156"      PinName="NodeOwner"      PinToolTip="Node Owner\nBTNode Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/AIModule.BTNode')      bHidden=True   End Object   Begin Object Name="EdGraphPin_4157"      PinName="Key"      PinToolTip="Key\nBlackboard Key Selector Structure (by ref)"      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/AIModule.BehaviorTreeTypes:BlackboardKeySelector',bIsReference=True,bIsConst=True)      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_150.EdGraphPin_4167'      bDefaultValueIsIgnored=True   End Object   Begin Object Name="EdGraphPin_4158"      PinName="ReturnValue"      PinToolTip="Return Value\nActor Reference"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')      LinkedTo(0)=EdGraphPin'K2Node_AIMoveTo_42.EdGraphPin_4118'   End Object   bIsPureFunc=True   FunctionReference=(MemberParentClass=Class'/Script/AIModule.BTFunctionLibrary',MemberName="GetBlackboardValueAsActor")   Pins(0)=EdGraphPin'EdGraphPin_4155'   Pins(1)=EdGraphPin'EdGraphPin_4156'   Pins(2)=EdGraphPin'EdGraphPin_4157'   Pins(3)=EdGraphPin'EdGraphPin_4158'   NodePosX=752   NodePosY=256   ErrorType=1   ErrorMsg="Error Default value \'\' for  Key  is invalid: \'Literal values are not allowed for pass-by-reference parameters.\'"   NodeGuid=98F411F940A58634CB63C1BF782C619BEnd ObjectBegin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_150"   Begin Object Class=EdGraphPin Name="EdGraphPin_4167"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_4168"   End Object   Begin Object Name="EdGraphPin_4167"      PinName="TargetToFollow"      Direction=EGPD_Output      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/AIModule.BehaviorTreeTypes:BlackboardKeySelector')      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_26123.EdGraphPin_4157'   End Object   Begin Object Name="EdGraphPin_4168"      PinName="self"      PinFriendlyName="Target"      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/RapidMoveTo.RapidMoveTo_C')      bHidden=True   End Object   VariableReference=(MemberName="TargetToFollow",bSelfContext=True)   Pins(0)=EdGraphPin'EdGraphPin_4167'   Pins(1)=EdGraphPin'EdGraphPin_4168'   NodePosX=592   NodePosY=256   NodeGuid=361AB0164C7B72B6F80BD986EFD799A2End ObjectBegin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_265"   Begin Object Class=EdGraphPin Name="EdGraphPin_20067"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20068"   End Object   Begin Object Name="EdGraphPin_20067"      PinName="AI_CON_Ref"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/Follower_AI_Con.Follower_AI_CON_C')      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_123506.EdGraphPin_4104'   End Object   Begin Object Name="EdGraphPin_20068"      PinName="self"      PinFriendlyName="Target"      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/RapidMoveTo.RapidMoveTo_C')      bHidden=True   End Object   VariableReference=(MemberName="AI_CON_Ref",bSelfContext=True)   Pins(0)=EdGraphPin'EdGraphPin_20067'   Pins(1)=EdGraphPin'EdGraphPin_20068'   NodePosX=592   NodePosY=208   NodeGuid=A10A3F5048238FE8D6B7E9A8DFF21873End ObjectBegin Object Class=K2Node_IfThenElse Name="K2Node_IfThenElse_100"   Begin Object Class=EdGraphPin Name="EdGraphPin_20069"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20070"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20071"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20072"   End Object   Begin Object Name="EdGraphPin_20069"      PinName="execute"      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_Event_845.EdGraphPin_4173'   End Object   Begin Object Name="EdGraphPin_20070"      PinName="Condition"      PinType=(PinCategory="bool")      DefaultValue="false"      AutogeneratedDefaultValue="false"      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2670.EdGraphPin_20078'   End Object   Begin Object Name="EdGraphPin_20071"      PinName="then"      PinFriendlyName="true"      Direction=EGPD_Output      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_AIMoveTo_42.EdGraphPin_4110'   End Object   Begin Object Name="EdGraphPin_20072"      PinName="else"      PinFriendlyName="false"      Direction=EGPD_Output      PinType=(PinCategory="exec")      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_1392.EdGraphPin_6847'   End Object   Pins(0)=EdGraphPin'EdGraphPin_20069'   Pins(1)=EdGraphPin'EdGraphPin_20070'   Pins(2)=EdGraphPin'EdGraphPin_20071'   Pins(3)=EdGraphPin'EdGraphPin_20072'   NodePosX=112   NodeGuid=5DE038EB4BDB2B34F7C21B9FA0A97743End ObjectBegin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_267"   Begin Object Class=EdGraphPin Name="EdGraphPin_20073"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20074"   End Object   Begin Object Name="EdGraphPin_20073"      PinName="AI_CON_Ref"      Direction=EGPD_Output      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/Follower_AI_Con.Follower_AI_CON_C')      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2670.EdGraphPin_20076'   End Object   Begin Object Name="EdGraphPin_20074"      PinName="self"      PinFriendlyName="Target"      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/Blueprints/AI/RapidMoveTo.RapidMoveTo_C')      bHidden=True   End Object   VariableReference=(MemberName="AI_CON_Ref",bSelfContext=True)   Pins(0)=EdGraphPin'EdGraphPin_20073'   Pins(1)=EdGraphPin'EdGraphPin_20074'   NodePosX=-352   NodePosY=-64   NodeGuid=DD83F3A04F10972DE201B1A9948967EFEnd ObjectBegin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2670"   Begin Object Class=EdGraphPin Name="EdGraphPin_20075"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20076"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20077"   End Object   Begin Object Class=EdGraphPin Name="EdGraphPin_20078"   End Object   Begin Object Name="EdGraphPin_20075"      PinName="self"      PinFriendlyName="Target"      PinToolTip="Target\nKismet Math Library Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')      DefaultObject=Default__KismetMathLibrary      bHidden=True   End Object   Begin Object Name="EdGraphPin_20076"      PinName="A"      PinToolTip="A\nObject Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_267.EdGraphPin_20073'   End Object   Begin Object Name="EdGraphPin_20077"      PinName="B"      PinToolTip="B\nObject Reference"      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')   End Object   Begin Object Name="EdGraphPin_20078"      PinName="ReturnValue"      PinToolTip="Return Value\nBoolean"      Direction=EGPD_Output      PinType=(PinCategory="bool")      DefaultValue="false"      AutogeneratedDefaultValue="false"      LinkedTo(0)=EdGraphPin'K2Node_IfThenElse_100.EdGraphPin_20070'   End Object   bIsPureFunc=True   FunctionReference=(MemberParentClass=Class'/Script/Engine.KismetMathLibrary',MemberName="NotEqual_ObjectObject")   Pins(0)=EdGraphPin'EdGraphPin_20075'   Pins(1)=EdGraphPin'EdGraphPin_20076'   Pins(2)=EdGraphPin'EdGraphPin_20077'   Pins(3)=EdGraphPin'EdGraphPin_20078'   NodePosX=-160   NodePosY=-64   NodeGuid=F90931054D514458FE3DDA997BE5C7C2End Object     p').length != 0) { copyToClipboard($('#fullgraphBTService12_snippet > p').html()); } else { copyToClipboard($('#fullgraphBTService12_snippet').html()); }
点击图片将其展开,或点击 此处
在窗口中打开。

【虚幻4翻译文档-12.创建 Task 节点 | Unreal Engine】[虚幻4中文文档]



该蓝图的变量名、类型和数值:



变量名
类型
数值

AI_CON_RefFollower_AI_CON_C无TargetToFollowBlackboardKeySelector无 - 但此变量的“可编辑”标记为 True,因此可在行为树中根据实例进行变更。
以下是该图表中将执行的操作:

Event Receive Execute 是行为树运行此任务节点时调用的事件。

按之前步骤中的方法保存 Follower_AI_CON。

Cast to Actor 节点从黑板获取 “TargetToFollow” 物体值并投射到一个 Actor 上,以便在 AI MoveTo 节点中使用。

完成后,任务将成功运行 Finish Execute 节点。



   
Previous Step
Next Step



   
Quick Start Home
回复

使用道具 举报

0

主题

847

帖子

2852

积分

vip会员

Rank: 1

积分
2852
发表于 2016-7-2 18:58:25 来自手机 | 显示全部楼层
楼主真是好人吖~~非常感谢
回复 支持 反对

使用道具 举报

0

主题

861

帖子

2874

积分

vip会员

Rank: 1

积分
2874
发表于 2016-7-3 21:42:56 | 显示全部楼层
我现在有的是钱,我要下了!
回复 支持 反对

使用道具 举报

游乐儿 该用户已被删除
发表于 2016-7-4 11:00:12 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

0

主题

916

帖子

2989

积分

vip会员

Rank: 1

积分
2989
发表于 2016-7-10 17:31:04 来自手机 | 显示全部楼层
谢谢版主分享,现在又看到它了,我就不能放弃,
回复 支持 反对

使用道具 举报

0

主题

855

帖子

2841

积分

vip会员

Rank: 1

积分
2841
发表于 2016-7-15 10:53:36 | 显示全部楼层
好吗
回复 支持 反对

使用道具 举报

0

主题

845

帖子

2783

积分

vip会员

Rank: 1

积分
2783
发表于 2016-7-16 10:18:41 | 显示全部楼层
谢谢分享,顶一个
回复 支持 反对

使用道具 举报

0

主题

895

帖子

2936

积分

vip会员

Rank: 1

积分
2936
发表于 2016-7-19 00:51:25 | 显示全部楼层
这个必须顶,撸主好人
回复 支持 反对

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | enginedx注册

本版积分规则

 
 



邮件留言:


 
返回顶部