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"

accessed none: print string on hit

I've seen other similar issues to mine, but none that were able to solve my particular problem. I want to print "hit" when my projectile hits the target. My blueprint is as follows:

alt text

And the error log:

alt text

Any help would be greatly appreciated :)

Product Version: UE 4.8
Tags:
k2node_error.jpg (49.4 kB)
k2node_errorlog.jpg (127.8 kB)
more ▼

asked Jun 11 '15 at 06:45 AM in Blueprint Scripting

avatar image

Kadeschui
6 1 4

avatar image Kadeschui Jun 11 '15 at 06:47 AM

I should add that the blueprint does in fact work, "hit" is printed correctly when the projectile hits. But it still generates the error.

avatar image Erasio Jun 11 '15 at 01:00 PM

It doesn't look like this is caused by the Hit event or anything you put behind it.

"Accessed None" usually means that a variable is not available. You can check that via a simple "IsValid" node to prevent this error from occurring... however it shouldn't be possible for this to occur in the part you show...

avatar image Kadeschui Jun 11 '15 at 04:53 PM

OK great. I'll give this a shot and let you know the results. Thank you!

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

1 answer: sort voted first

Print out the value of "Other" from your event, it could be the value is none and the error is spawning from trying to get the tag from an invalid actor.

Typically this error means something is invalid that you are assuming exists. Typically you want to verify each input is valid before referencing it if you don't have max surety that it will always be valid.

Testing if anything is valid is simple, you can drag out of most any type and choose isValid as a pure boolean or a macro version for the execution chain.

more ▼

answered Jun 13 '15 at 07:05 AM

avatar image

RimmyD
2.6k 98 16 97

(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