I am trying to incorporate tags in my game development and it works great except during the below snippet of code I get an accessed none error.
What I want the BP to do: when I double click on an actor that has a specific tag the camera pawn controller moves to the object’s location (and keeps the current Z value). It works great except the accessed none error happens when I double click in an empty area. Unless I am not understanding something about hit result under cursor, is the error from me hitting my skybox or me hitting nothing under my mouse?
hitting nothing under my mouse?
It’s this. The Get Hit node returns a boolean value, wire it into a Branch
node, and continue only when True
.
Other than that, you could check whether hit actor isValid
thank you that worked perfectly (the first option)!!!
1 Like