Stop Action bar

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

TullyMastully

Member
Aug 9, 2017
38
0
0
34
Hello,
I wanted to know how to make so if a player hits another player,
it will stop the action bar, for example.
I made a timer using the action bar, that displays 30 seconds, I want the Timer (Action bar) to disappear when hitting a player

Thanks in advance,
Tully.
 
Yes, but then it just skips one action bar and continues,
Is there any possible way to remove it completely?
set a variable, display the action while the variable is set (using a while loop) and then delete the variable when the player gets hit.

It would be something like this:

code_language.skript:
set {cooldown::%player's uuid%} to true

while {cooldown::%player's uuid%} is set:
    #display the action bar
    wait 1 second

on damage of player:

    attacker is a player
    clear {cooldown::%victim's uuid%}
    #display a blank action bar here
 
Status
Not open for further replies.