Hello there,
i have been looking for a solution to my (probably very simple) problem, but couldnt find a solution to it.
So briefly explained, When implementing multiplayer the player movement (w,a,s,d) causes an “access none” error when trying to manipulate the Players position over the player pawn refrence Variable.
Explaining the setup: When starting the game a main menu map is laoded with 2 simple “host” and “join” buttons. “Host” opens up a listen server, “join” joins the local home address 127. The base gamemode spawns on each connecting player a player pawn and makes the new player possess it.
The playercontroller makes a “get player Pawn” → cast to Playerpawn → set refrence variable on “event begin play”:
An example of an movement that isnt working is this macro:
→
Funnily the issue can be partily avoided by just not doing it when variable = none, like so:
Sometimes it works sometimes it doenst, e.G, the camera pan functions normally work but when expanding the movement capabilitys, it stops working.
However, i dont see “branch → is valid”, as a valid soution to my problem XD
So thanks in advance if anyone can help me with this.
Greetings.
I have been following tutorials closely but couldnt find the solution to it.