As the picture display Controller is from the default class APawn , why is the undeclared identifier?
Try using GetController() instead. You should also probably check that it’s valid before dereferencing it.