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"

[Closed] Accessed none even though it shouldnt?

I have just recently begun re creating my corrupted project in UE4 (from scratch) and I keep getting an access none error

alt text

which leads to an empty function (from an interface) when I click on it.

alt text

But from reading it, it seems to actually mean here

alt text

This error only occurs when I am moving the player via keyboard not and not mouse (its a top down game) and rotating the camera via the above function simultaneously?

Can anyone see any problems here? I can't.

Product Version: Not Selected
Tags:
more ▼

asked Aug 30 '14 at 06:32 AM in Blueprint Scripting

avatar image

Oscar Cooke-Abbott
542 54 59 73

avatar image Skooma Aug 30 '14 at 06:08 PM

Could you explain a little more about how your InputActionCameraControl is supposed to work??

Skooma

avatar image Oscar Cooke-Abbott Aug 31 '14 at 01:56 AM

Ok, so what this does is when the player holds down the middle mouse button, the camera will rotate around the player depending on the mouse x input (it's a top down game, similar to divinity original sin).

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

The question has been closed Aug 31 '14 at 03:02 AM by Oscar Cooke-Abbott for the following reason:

I realised the problem, it was on my end, not UE4's fault.


2 answers: sort voted first

I discovered the problem, I was trying to use the player casted as mainpawn later on in the script, and I didnt realise that because that part was way further away.

So what was happening was that it was trying to access a variable which was only available for a certain part of the time.

more ▼

answered Aug 31 '14 at 03:02 AM

avatar image

Oscar Cooke-Abbott
542 54 59 73

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

this might be a bandaid of a solution but... cant you just do a 'isvalid' in your 'direct interact' function??

more ▼

answered Aug 31 '14 at 12:34 AM

avatar image

ClaverFlav
352 29 148 200

avatar image Oscar Cooke-Abbott Aug 31 '14 at 02:53 AM

Therein lies the problem.

The direct interact function on the controller is never being called, and if you read the error, its actually meaning the third image has a problem, even though it doesn't link there.

(So no, I've tried that and many other things, including a print string, and none of them even fire, so its not there that has the problem.)

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

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question