Is it posible to access the health modifier?

I am trying to modify the health of a NPC via code, but it seems that changing the character health does not do anything

imagen_2024-08-22_162032541

Any ideas?