Spawning an entity at another entity's location

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

Aberforth

Member
Jun 14, 2019
40
2
8
Canada
Hi.
I need a script that would spawn an armor stand when a zombie is hurt. (the armor stand should be spawned at the location of the said zombie.) Also I want to be able to add a data tag to the armor stand, like no gravity, invisible etc.

Any help is much appreciated.
 
Code:
on damage:
    victim is a zombie
    make console execute command "/summon armor_stand %location of victim% {Invisible:1b,NoBasePlate:1b,NoGravity:1b,ShowArms:1b}"