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"

"Pawn Sensing" doesn't work.

Hi guys, I followed this tutorial: https://www.youtube.com/watch?v=59INcP9Vsmo

I made everything like the video, but the character with pawn sensing doesn't follow me at all. Should I do something else?

Regarding my project, I just have a normal character controlled by me with keyboard inside a normal scenario. Nothing particular has made inside of it.

Product Version: UE 4.10
Tags:
more ▼

asked Mar 09 '16 at 01:20 PM in Blueprint Scripting

avatar image

Marco I.
19 7 10 12

avatar image Tensa_Zangetsu Mar 09 '16 at 02:29 PM

Hi Marco,

the recommended approach regarding "Sensing" activities is to use the AIPerception Component. The Pawn Sensing Component seems deprecated by now and at least not maintained anymore.

avatar image Marco I. Mar 09 '16 at 02:50 PM

Hi Tensa, thank you for your reply. Yeah I know that is deprecated, and will be replaced very soon by the AIPerception component, but since I really need something in a simple way for now, can I still use the Pawn Sensing component?

I mean, it still should work, right? I just want to understand why it doesn't work. AIPerception seems a little bit more complicated for now, I need to show something very simple as an example of interaction between characters.

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

2 answers: sort voted first

Well, PawnSensing should still be functional, indeed. Did you put the NavMesh on the map?

more ▼

answered Mar 09 '16 at 03:03 PM

avatar image

Tensa_Zangetsu
383 10 16 38

avatar image Marco I. Mar 09 '16 at 03:15 PM

Uhm... no? I'm completely new to this, I made interior design usually! :D Is it complicated to do? What I have to do exactly?

avatar image Marco I. Mar 09 '16 at 04:19 PM

Ok seems that it works now. :) Thanks!

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

I spent several hours debugging this issue, if anyone else has the same problem, try registering the delegate function inside BeginPlay. I had it registered in the constructor and it was never called. I don't know why we can't use AddDynamic in constructors, but in some cases it just doesn't work. As soon as I moved it to BeginPlay everything worked as expected.

more ▼

answered Mar 27 '19 at 05:58 AM

avatar image

JJFawkes
1 1 1

(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