I am trying to do a zombie minigame and I replace players hearts with a variable, I want to do the same with the zombies.
Example
I try to set a variable to a zombie but I don't know how to
Example
Code:
on damage of a player:
if {minigame.%attacker%} is true:
cancel event
set {p_health.%attacker%} to p_health.%attacker%} - 10
if p_health.%attacker%} is less than or equal to 0
kill attacker