Damage delay

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

Fredward617

Member
Jul 12, 2020
1
0
0
17
Hey so I have this gun skript and it works pretty well. The only problem is the vanilla damage delay. It ruins the fire rate of a lot of my guns as if a lot of projectiles hit only a few of them do damage. Is there a skript that could remove the delay. I tried using on projectile hit instead of on damage and shooter instead of attacker but I couldn't use victim and I couldn't find anything to replace victim. If there is an addon or something that can fix that that would also be great.
Sample skript:

on rightclick:
player is holding {assaultrifle}:
if {reloaded.%player%} is true:
shoot snowball from player at speed 5
set {reloaded.%player%} to false
wait 0.17 seconds
set {reloaded.%player%} to true

on damage:
attacker is a player:
attacker is holding {assaultrifle}:
damage victim by 4 hearts