x

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"

Unstable Ai Behaviour tree

My Ai Behaviour tree is being really unstable, even without touching it. It Work like I want sometime but after 5 minutes, my bots starts to freak out and do random thing, use the ai perception that I didn't even used and it's really annoying.

Product Version: UE 4.13
Tags:
more ▼

asked Nov 10 '16 at 02:42 AM in Blueprint Scripting

avatar image

Bykgames
24 2 2 9

avatar image MieszkoZ STAFF Nov 10 '16 at 02:54 AM

There's really little information in your question. Would you mind posting some more, like how your tree looks like, what kind of BT nodes have you implemented yourself, etc.

avatar image Bykgames Nov 10 '16 at 04:35 AM

It look like that, I have multiples bots and they are supposed to be fighting each other and go destroy the enemy base. They attack the nearest enemy and go automatically on it, even if it don't see it. So I don't need the ai senses but they are always following the player when it enter in is field of view and the player as nothing to do in the behaviour tree. As I asid, it works fine but after some time, it starts to bug and be really wacky and then 5 min after they go as expected. I don't know if it is a bug of the engine, my PC or projects setting because my Behaviour tree is working fine when it want

[1]: /storage/temp/114424-aibehaviourtree.png

aibehaviourtree.png (175.1 kB)
avatar image MieszkoZ STAFF Nov 14 '16 at 04:06 PM

There are bugs in the engine, but it's usually a good idea the bug is in the game code, verify that everything is bulletproof, and then blame the engine. We're using BTs for multiple projects, where it runs for a lot longer than 5 minutes, so I don't think this specific issue is related to BT internal code.

How is the 'TargetActor' key being set? Is there a chance it gets set to the Player? If so, make sure your BB keys are not marked as "synchronised" (there was a bug regarding that).

avatar image Bykgames Nov 15 '16 at 01:43 AM

Oh my god..well that was all.. all my bb variables where synchronized.. Thanks a lot for the help :D

(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