Can I "GetComponet<BehaviorDesign(Action1)>():

Jeremy

New member
Hello! I need help!

There is an NPC and It have 2 Situations.

If( Situation1)

{// NPC must take Action1//}

if(Situation2)
{// NPC must take Action2//}

If I have to control those Situation1 or Situation2...

Can I "GetComponet<BehaviorDesign(Action1)>():

or

Can I "GetComponet<MoveTowards>():

at "Other Scripts"??
 

Attachments

  • BehaviorTree(ScreenCapture).jpg
    BehaviorTree(ScreenCapture).jpg
    171.4 KB · Views: 1
Moving to the Behavior Designer board.

Tasks are not components so you cannot use GetComponent. You can use FindTask though:

 
Top