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"

HELP - Accessed non trying to read property

Hi to everyone,

the situation it's this:

I got a key in the middle of the room that start the game, then the first puzzle it's lighted and you can do it, there's a bool in this puzzle called 4vero? that show thata the puzzle it's completed. I want to access this boll variable from the spherekey puzzle in the middle of the room (i created the BP of primo puzzle to access it). but in runtime i got this error.

I'll show in a few screenshot the situation.I understood the problem but don't know how to fix it or to implement a different solution. My first work in UE4.

My request is: Once primo puzzle it's completed the spehere key in the middle start to rotate in X axis.

Kindest regards to everyone who answer.alt text

Product Version: UE 4.13
Tags:
4vero.png (14.6 kB)
error.png (246.1 kB)
firstpuzzle.png (223.5 kB)
primopuzzleok.png (205.1 kB)
spherekey.png (265.1 kB)
more ▼

asked Nov 28 '16 at 01:43 PM in Everything Else

avatar image

Kyura_21
1 1

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

3 answers: sort voted first

You are checking for Is Valid on the PrimoPuzzleok reference and that is good, but the problem is that if it is not valid you are then setting it to None (by having nothing connected to the input pin). Then after setting it to None (which it already was) you try to set a boolean value on the reference that is set to None. This will always fail and give you the errors you are seeing.

Is it possible that you can connect a valid reference to the Set PrimoPuzzleok input pin? If it isn't valid do you have a way of looking it up in the level? Possibly with a Get All Actors of Class node?

more ▼

answered Nov 28 '16 at 02:00 PM

avatar image

Dartanlla
2.6k 62 27 281

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

i don't think i've understood. so i've understand that i can let the pin empty and now i get the primopuzzleok BP and then trying to assign that bool.

But i still got the error.

i post an image.alt text

spherekeyv2.png (128.3 kB)
more ▼

answered Nov 28 '16 at 06:13 PM

avatar image

Kyura_21
1 1

avatar image Dartanlla Nov 28 '16 at 06:44 PM

This won't work because you are checking if PrimoPuzzleok is None, then if it is None you are setting it to itself. To fix this you have find a valid reference to PrimoPuzzleok some other way. See if you have a reference to it that you can get from another BP or by using the Find All Actors of Class node.

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

i cant find the reference to 4vero? anywhere also trying with find all actors of class node.

4vero? it's a bool variable and i need it to start the second puzzle

more ▼

answered Nov 28 '16 at 06:51 PM

avatar image

Kyura_21
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