If Volume Trigger Crashes

Currently my Open_Door_collision function operates properly when run by itself. However, when i add an “If” statement to check pressure plates and if actor is on it. My program crashes when i try to “Play”.

I have all my doors set to a pressure_Plate, so that’s fine. Curious of why if it is the Null actor we point to in the if statement? since we don’t set it until the game begins, However the course shows it running fine the way the teacher runs it.

It was the Null pointer of the actor, just wanted to verify I guess before the fix in next video.

SomePoiner-> dereferences the pointer. If that pointer is null then that is undefined behaviour as what would the meaning of “get the value at the address of nothing” be? Fortunately this would just crash the Unreal editor here.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms