Hi there, I’m getting some strange errors while playing in Editor and I can’t figure out why.
It’s for a University project and although it’s not “breaking” the project, I’d rather not have errors haha.
The game has 4 classes to choose from so I’ve been handling that with switches and I have all of the functions for every class within the controller. The problem is, with one particular function for firing secondary weapons I continually get the error "Accessed None ‘CallFunc_K2_GetPawn_ReturnValue’ from node ForLoopWithBreak.
I think pictures will probably describe it better.
Sorry just came to reply to myself in case anyone else is having the same issue!
I found a node in my controller event graph which controlled the characters rotation which didn’t have an “isvalid” node.
Just a heads up for everyone else, even though the error reporter was pointing me to the “fire primary” function, the problem was actually nothing to do with!
I think it’s because I use the same controller on the menu screen at the start and the character rotation follows the mouse, because there is no pawn on the menu screen the “get controlled pawn” node would return a null value.
Today I learned: Isvalid nodes are good! Thanks all!