How to Spawn Zombie with armor

  • 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 comminuty!

    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.

Shroomz

Supporter +
Jun 22, 2017
44
0
6
25
Hey

Still developing my rpg server.. I wanna have feature that on death spawn zombie with players armor if the player was killed by zombie... I know conditions etc to this but how to spawn zombie with his armors
 
I'm not sure if the player is considered to still have their armor in the 'on death' event, but if they do then you can just do something like this:
code_language.skript:
on death of player:
    if attacker is a zombie:
        set attacker's helmet to victim's helmet
        #repeat for other armor
If they player isn't considered to still have their armor 'on death' then just do the same thing but check 'on damage' and check if the damage is greater than the victim's health
[doublepost=1498506091,1498505971][/doublepost]Tested it and the first way works
 
Status
Not open for further replies.