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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

how make one enemy alart other enemy in area

hi if anyone can help in this problem and make this AI i will very thankful i need help for this AI if anyone cant say code c++ of this you can help me with blueprint

Product Version: UE 4.19
Tags:
more ▼

asked Jul 13 '18 at 10:04 AM in C++ Programming

avatar image

Soroshqwe
1 1 1

avatar image mightyenigma Jul 13 '18 at 05:30 PM

What have you done so far, and what's the exact part that doesn't work?

avatar image Soroshqwe Jul 14 '18 at 11:05 AM

im for now make a Ai with abilty to chase obj.player but i cant make him to alart to other enemy i really dont know how i can make enemy to want help of other enemy becuase this is very important to make a nice Ai If you help me, I really thank you

avatar image mightyenigma Jul 14 '18 at 01:22 PM

I mean what have you tried to do, to make him alert the other enemy?

avatar image Soroshqwe Jul 14 '18 at 03:05 PM

yeah of course because this is very useful in game

avatar image mightyenigma Jul 14 '18 at 08:56 PM

What things have you tried to do so far, and at what point in your progress did you have an obstacle?

avatar image Soroshqwe Jul 14 '18 at 09:38 PM

i work on Ai powerful Let me explain more this to you: i want make a Ai like last of us if you see last of us before enemy can : -Cover each other -and alart other enemy
-and of course can hear shot sounds but i just want to make number 2 if you really dont know how to write c++ you can help me with blueprint but blueprint make game slower and its a big problem anyone dont want this and because of this i really dont want to use it but if you know just blueprint dont worry about this tell me if you can help me with c++ or have you Any solution even idea can help us let me know i have hope this information can is useful for you

thank you

avatar image mightyenigma Jul 15 '18 at 12:33 AM

It sounds like you have bot done anything yet. Do you know the basics of AI in Unreal like Behavior Trees.

To alert another Controller or Pawn you simply have one of them set a variable on the other so it has the same target - the player. And whenever it has a target it tries to kill it. Youdo t even really need AI special systems to do that. And then they just use Navmesh to find their way like any other AI character with moveTo etc.

Are you planning on having large numbers of enemies? If not the blueprints are fast enough.

avatar image Paul_LTC Jul 15 '18 at 06:48 AM

What you said sounds really vague, sir. Can you elaborate more on how you would like to alert? By phone calling other enemies? By yelling? By following-up when an enemy sees that another enemy is chasing the player? Please specify.

avatar image teak421 Jul 16 '18 at 03:05 PM

Agreed with others, pretty vague. Consider prototyping / programming in BP and then you can move your Tasks to C++ if performance does not meet your requirements.

avatar image Soroshqwe Jul 16 '18 at 09:21 PM

i working really hard on c++ dosent matter what other says i know maybe you think blueprint is batter than programing with c++ but must pupular game in world build with this language now whatever you want or not for making awesome game you must work with blueprint and c++ with together i have hope you understand if anyone cant any help dont comment spam

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

1 answer: sort voted first

There are a few ways of doing this. If your game is AI heavy then I'd suggest using a combination of Behaviour Trees (because they are awesome), and probably the AI Perception and Sense system (this is a decent introduction: http://isaratech.com/ue4-ai-perception-senses-and-stimuli-source/). You will need a reasonably level of C++ knowledge and quite a bit of patience for this though as it's not that well documented yet. You can have one AI alert another by making a custom 'alert' sense, or you could do something like the more straight forward method below.

If your game is light on AI, then you could just have all AI broadcast and listen for events (https://docs.unrealengine.com/en-us/Programming/UnrealArchitecture/Delegates/Multicast) The event could pass around the AI which wants to send the alert, and all AI which receive it can then interrogate it to find location etc and determine if should also go into alert.

In either case, satisfying AI can take a while to make, so start simple and build up. Make sure it's always easy to make changes because you'll be making a lot of them as your game progresses!

more ▼

answered Jul 16 '18 at 09:40 PM

avatar image

phil_me_up
1.5k 6 6 12

(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