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"

Can't figure why im getting this error :accessed none

alt text

This is my blueprint, im getting the following error : "Accessed none 'last hit actor' from node 'destroy actor' in blueprint 'mycharacter' ".

I have no idea how to fix that error. Any suggestions ?

Product Version: Not Selected
Tags:
more ▼

asked Mar 14 '15 at 04:00 AM in Blueprint Scripting

avatar image

Matt117
0 1 1 1

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

2 answers: sort voted first

Try to validate your Item Variable you taking in before assigning it. (IsValid Node) Thats just a guess from looking at it but I would need the Message Log and Output Log to be sure.

more ▼

answered Mar 14 '15 at 09:54 AM

avatar image

Martin Egger
388 17 10 29

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

"Accessed None" is a very often and important error.

In C++ you have Pointers. They CAN point to an Class Object. Or better to the address of that object on your PC memory.

These variables (pointers) can be NULL. They are empty if you don't fill them. (INT Variables for example aren't null. They have a number in them. If you don't fill it there is still a number in it).

If you now want to use the actor the pointer SHOULD point to and the pointer is NULL (so it is not pointing to any actor/object) you will get the ACCESSED NONE error.

In C++ you would use a small "if(MyPointerVariable != NULL) to make sure that you don't access it if it is NULL.

In BP you can use "IsValid" (like Martin Egger told you). This will only proceed if the variable is valid(not null).

I guess you error comes from using a variable that should save the last hit actor and destroy it. Your variable can be NULL if you don't hit something but still call the function. If you are using a line trace, you could using a branch and plugin the trace result. This will make sure that you have hit something.

But if you want to make it better, use IsValid or make sure that you can't use the Destroy on an empty variable.

more ▼

answered Mar 15 '15 at 01:08 AM

avatar image

eXi
6.8k 333 185 470

(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