Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Behavior Tree Not Working Properly

Hi, I'm working on my first game and am having trouble with the behavior tree. The game has the player spaceship and an AI spaceship that it has to destroy. The AI should shoot and follow the player. Previously, it did these things, but after working on it one day, it stopped following the player. The shooting works fine, as this is not part of the behavior tree. But the enemy ship will not follow the player. The behavior tree IS running, I tested this with some print commands, but it is not executing the move part. Could the navmesh think the AI is an obstacle, or is something wrong in my code? Anyone have any ideas? Thanks.

Behavior Tree



Product Version: UE 4.12
bt.png (419.6 kB)
custommoveto.png (495.8 kB)
setplayerpos.png (533.1 kB)
more ▼

asked Nov 23 '16 at 02:39 PM in Blueprint Scripting

avatar image

1 2 2

avatar image Stormrage256 Nov 23 '16 at 03:08 PM

Try doing a double check on the values of 'TargetPos' & 'Position' blackboard key selectors from the Behavior Tree Task detail panels.

avatar image zeeman12 Nov 25 '16 at 01:30 AM

I printed the value of these variables and it updated the location of the player correctly.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question