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"

Throw a rock to draw AI's Attention?

I created a guard AI Behavior that react to noises and i having problems to create a projetile that makes noises and attract bot...he doesn't go to the rock hitlocation...he only hear the player noises

Can anyone explicit in Blueprint how I create this?

Product Version: Not Selected
more ▼

asked Feb 09 '15 at 04:12 PM in Blueprint Scripting

avatar image

371 55 49 64

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

1 answer: sort voted first

You can use the PawnMakeNoise function of your character using the NoiseLocation argument and set the bUseNoiseMakerLocation flag to false so that the noise will come from the NoiseLocation you have set. If you set bUseNoiseMakerLocation to true and you provide a NoiseMaker actor his lcoation will be used, if NoiseMaker is left to null the pawn itself will be used as the marker.

more ▼

answered Feb 09 '15 at 04:59 PM

avatar image

6.4k 127 98 607

avatar image LitStudio Feb 11 '15 at 01:33 AM

So...if i want my rock to draw atention from the AI BOT i need to use this function inside ROCK blueprint after a Event Hit with bUseNoiseMakerLocation FALSE alt text

sem título.jpg (46.3 kB)
avatar image LitStudio Feb 11 '15 at 01:35 AM

Its funny because the fuction's name is PAWN make noise and my rock is a Blueprint based in Actor

avatar image Moss Feb 11 '15 at 09:59 AM

Because the noise is handeled by the pawn, but if you add your rock as the Noise Maker and check the NoiseMaker mark it will use that actor. Using the location and not marking the marker flag will also work. But you have to do it from within the pawn or use a pawn as the target. I normally use the player pawn that threw the rock.

(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