Shoot snowball from parrot to nearest zombie

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

Code:
command snowball:
    trigger:
        set {_d} to nearest parrot relative to the player
        set {_f} to nearest zombie relative to {_d}
        shoot a snowball from {_d} in direction of {_f}