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"

how do i do an action in character blueprint when seen (using pawn sensing) by an AI?

I am relatively new to blueprints but I want to have it that when the AI sees the player character this changes the scale of the sphere component attached to the player character and when not seen it shrinks back to normal size. alt text

Product Version: UE 4.13
Tags:
printscreen1.jpg (737.0 kB)
printscreen2.jpg (699.2 kB)
more ▼

asked Jan 13 '17 at 08:40 PM in Blueprint Scripting

avatar image

rjjames
1 1

avatar image Katuta Jan 13 '17 at 09:31 PM

is the code firing at all?

avatar image rjjames Jan 14 '17 at 10:01 AM

Yeah, the code on both works but i cant find a way to connect them together so that only when the player is seen by AI pawn sensing that the sphere gets bigger

avatar image shotty46290 Jan 14 '17 at 09:15 PM

The way you have it right now the sphere should be forever expanding. As for the AI, you don't want their movement in there. You want to make a behavior tree, and when the AI sees the player, set a variable and tell him to move. You are also using two move nodes, but one only has a destination, which means one is literally pointless. This also as no effect of increasing your sphere size. I took a screen shot of a increasing sphere size. If the AI sees the "tree" in my case there is a collision sphere which expands while been seeing on a timer when the AI sees the tree he cast to him setting his "IsSeen" Bool to true and here is the screenshot of inside the tree alt text

51.jpg (171.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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