Set a citizen's (npc) health?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

pepper82

Member
Jan 26, 2017
272
1
18
Hey all,
I tried this to set a citizens max health:

create a citizen named "Red" at location of player as a chicken
set {_npc1} to last created citizen id
make citizen {_npc1} vulnerable
set citizen {_npc1} max health to 50

But it does not seem to have any effect. The chicken is 1 hit with a sword.

What's wrong?
 
Status
Not open for further replies.