Grenade Launcher not working

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

    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.
Jul 25, 2019
20
2
0
I'm working on a zombie apocalypse and I'm making guns right now I'm trying to make a grenade launcher and it is not working (There is no errors from Skript)

Here is the code:
Code:
on right click holding a gold ingot:
    if the name of event-item is "Milkor MGL":
        if {delay.Milkor.%player%} is not set:
            player has coal
            remove coal from the player
            make the player shoot an arrow at speed 1.5
            set the name of the last shot arrow to "MilkorShot"

on projectile hit:
    projectile is an arrow
    the projectile's name is "MilkorShot"
    play explosion at the projectile
    create an explosion of force 10 at the projectile
    delete the projectile

If you can please can you also provide a way to damage entities around the arrow on the shot.

Thank you in advance.
 
For me it already just make a big explosion. nothing special happens
[doublepost=1564594272,1564594187][/doublepost]But:
Code:
loop all entites around the projectile in radius 5:
    damage loop-entity by 2

This can help you
 
For me it already just make a big explosion. nothing special happens
[doublepost=1564594272,1564594187][/doublepost]But:
Code:
loop all entites around the projectile in radius 5:
    damage loop-entity by 2

This can help you

What plugins are you using because this doesnt work for me
also
Code:
loop all entites around the projectile in radius 5:
comes up with the error
Code:
Cant understand this loop
 
Status
Not open for further replies.