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"

AI STANDING at a distance To shoot

May involve some blueprinting as well. Anyway, in the shooter game project, the bots seem to always go towards the player, but never stands still to shoot him how can I make him do this? I tried deleting some move to nodes, but the didn't work out

Product Version: Not Selected
more ▼

asked Aug 07 '14 at 04:43 PM in C++ Programming

avatar image

17 14 16 17

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

1 answer: sort voted first

alt text

So let me explain how this work, service Search for An Enemy will search through all enemy pawn and pick the nearest one each 2 second, it AI have target, it will set the value Enemy in Blackboard, then the service Shoot An Enemy will fire at Enemy for each 0.5s. So if you want he just stand there just cut the link to HasEnemy. That HasEnemy selector only run if Enemy is set and it will run task sequence which it is find a nearest point and moving near to the Enemy. You can change this with what you want to do, like move to some point near the enemy first then standing there and shoot, this need some additional work though, but when you understand how think work it should be easy.

ai attack.png (101.7 kB)
more ▼

answered Aug 08 '14 at 03:13 AM

avatar image

Duncan Dam
3.1k 121 50 164

avatar image FusionSticc Aug 08 '14 at 03:19 AM

thanks for the help!

(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