Download

Blueprint script error, but it's working.

SOLVED

Hi, after I added WASD-movement in the Multiplayer Top Down RPG toolkit I get this error:

Error Blueprint Runtime Error: Accessed None trying to read property PlayerCharacterReference from function: ‘ExecuteUbergraph_MyNetworkController’ from node: Add Movement Input in graph: EventGraph in object: MyNetworkController with description: Accessed None trying to read property PlayerCharacterReference

It’s working fine, movement works.

The code is in the Default Player Controller Class taking information from the Default Pawn Class.

Since it’s working anyway, I’ve kept going a bit but… Feels like it needs to be cleared up, anyone got an idea?

Why not use “IsValid” to check the character reference’s validity?

I might be wrong but it could be because the PlayerCharacterReferece is not initialised, it has no default value. I think this has changed recently in the last couple of engine versions, it didnt used to show warnings for it

Thank you! Worked splendidly with IsValid between the InpuxAxis and Add Movement Input with the PCR as Input Object. Error-spamming is gone! :slight_smile: