Custom hit reg issues

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

zack5

Member
Dec 13, 2017
3
0
0
24
I'm making a shooter mini-game and when I tried to make a hit-reg, for headshots, chest shots, etc. Skript tracks the location of it still as if it went through the player.

I have Skript running on a 1.8 server.

Can someone give me an alternative to this?

code_language.skript:
on damage:
    if projectile is set:
        set {y1} to y-coordinate of projectile
        set {y2} to y-coord of victim
        set {y3} to {y1} - {y2}
        if {y3} is greater than or equal to 1.375:
            broadcast "hs!"
 
Im not sure but you can try using “while ground state of projectile is false: #do stuff”
 
Status
Not open for further replies.