How AI can get actor's variables (i.e. health)?

I’ve just realized that my answer didn’t update. Thank you very much, that really helped me!