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"

Enemy Object Detection And Attack

My game is combination of FPS and RTS game styles. I have door objects that can be placed at certain place to block enemy coming. However, when door object is placed, for example, 4 doors, blocked all pathes, the enemies will just walk around the Base without gathering in near door to destroy it by attacking. How to make a behavior tree that will tell the enemies to detect and attack the nearest door to clear the path for coming to attack the player?

Product Version: UE 4.10
Tags:
more ▼

asked May 23 '16 at 08:09 AM in Blueprint Scripting

avatar image

farrux
3 1 2 5

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

1 answer: sort voted first

AIMoveTo has an ENUM PathResult Output you can use to put in behaviour for Success, Blocked, Off Path, Abort, Skip or Invalid,

more ▼

answered May 23 '16 at 09:06 AM

avatar image

Mopperl
273 9 6 17

avatar image farrux May 23 '16 at 10:42 AM

Do you have example?

avatar image Mopperl May 23 '16 at 12:27 PM

I dont have any projects at the moment that use Blackboards and BehaviourTrees but something like this: alt text

Should maybe give you a starting point, youd put them in the Behaviourtree function that tells them to seek the target and save the target as blackboard variable, its been a while since ive worked with BT and BB though.

switchonresult.png (198.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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