Calling Actor HP into a variable?

I am trying to call a variable Actor ID to set the HP of that actor as another variable.

I am trying to do it like this:

$gameActors.actor($gameVariables.value(0001)).hp

Where 0001 is just a theoretical variable that I have set = to the ID of the actor who's ID I need.

... It doesn't seem to do anything.

I have already checked and the variable is indeed storing an Actor ID already. It just doesn't come out as HP when I try.

How do I call a variable Actor ID and check it's HP?
Numbers don't have leading zeros, so just use 1 instead of 0001
Numbers don't have leading zeros, so just use 1 instead of 0001

WOW. Hah. Worked.

Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/calling-actor-hp-into-a-variable.109932/