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"

Accessed none trying to read property (Bad Blueprint communication)

Hi there,

in my game, i want to spawn an AI when the player does something. It seems like the engine has a problem with the way that i am setting the variables in there.

So this is the output log :

alt text

This is the behavior tree when it is hostile (perform condition check is inside the BTD_IsInAttackRange) :

alt text

Here i am setting the Enemy Blackboard Key (BTS_TargetSensedPlayer) :

alt text

and this is the PerformConditionCheck Function :

alt text

However, the Game works as intended, even when i spawn the AI. How do i solve this ?

Thanks !

Product Version: UE 4.18
output.png (284.6 kB)
hostilebehavior.png (142.1 kB)
sensedplayer.png (249.9 kB)
conditioncheck.png (416.5 kB)
more ▼

asked Mar 03 '18 at 02:16 PM in Using UE4

avatar image

81 9 19 23

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

1 answer: sort voted first

Instead of using != nothing try using the Isvalid node or isvalid boolean into you branch.

Edit: Actually casting should take care of the valid check by itself (if im not mistaken), so you should be able to remove both of the != checks. Hope that helps.


more ▼

answered Mar 03 '18 at 07:10 PM

avatar image

283 9 19 22

avatar image Wizze192 Mar 03 '18 at 07:32 PM

Hey Samuelb, thanks for your quick answer !

Although this fixed some other issues, the initial message persists.

I feel like it still has a problem with how i want to access a nonexistent actor :(

avatar image Samuelb Mar 03 '18 at 07:40 PM

No problem, What exactly did it fix and what messages are still popping up? You are getting three separate errors, the last one is just happening constantly. -Samuelb

avatar image Wizze192 Mar 03 '18 at 09:02 PM

There were some other issues with the reference inside my level blueprint for a soundcue that is dependent on the players and the AIs position. I don't think thats part of the problem.

I still get all of the messages ust like in that first screenshot.

avatar image Samuelb Mar 05 '18 at 07:42 PM

Hi would you mind showing the DemonAiBP and the DemonController. its complaining about you setting a vector and a enum, probably a good place to start looking.

avatar image Wizze192 Mar 06 '18 at 03:40 PM

Yes you were right.

At first i got rid of the IsInAttackRange on the right side because i realised that i do not need it for my AI. After that, i reroutet the GetActorLocation to a Self reference instead of the Variable that gets the Spawned AI and set the SetValueAsVector to that. I also got rid of the SetValueAsEnum because i do not need the AI to be in that Enum State.

I ran multiple trys without any errors. Thanks for your help :)

avatar image Samuelb Mar 06 '18 at 05:52 PM

Hey there, Good to hear you solved the issue, glad that I could help! Would you mind marking the answer as solved? For tracking reasons and so that other people know the question is solved. (it's the check box that turns green next to the answer on the left)

  • SamuelB

(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