1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is it possible to cancel sound events?

Discussion in 'Skript' started by Adrihun, Apr 8, 2017.

Thread Status:
Not open for further replies.
  1. Adrihun

    Adrihun Member

    Joined:
    Feb 1, 2017
    Messages:
    368
    Likes Received:
    6
    I have made a simple sound script yesterday, what it does is if the player has diamond armor on, and they get hit with an iron sword, 'mob.blaze.hit' sound plays for the attacker. Is there a way to cancel the player hit sound when this 'mob.blaze.hit' sound plays?
    --- Double Post Merged, Apr 8, 2017, Original Post Date: Apr 8, 2017 ---
    bump?
    Is there an addon that cancels the player hurt sound?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    You could listen for outgoing sound packets using Skellett or MundoSK, try to check which sound is playing, and cancel the packet if it's playing the player hurt sound.
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...