Solved Help with explosion kill?

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

Zyxed

Supporter
May 17, 2021
23
1
3
27
Okay so I made a really simple skript. When you throw egg it creates an explosion. Now the problem is, when you throw the egg on player and the player dies, the dead is caused by an explosion. How I can make it to be player kill. So player who throw the egg will get a kill.

Code:
Code:
on projectile hit:
    event-projectile is egg
    wait 10 ticks
    create a safe explosion of force 2 at event-location
 
Not sure if the fake explosion event does damage
Code:
on projectile hit:
    if event-projectile is an egg:
        create a safe explosion of force 2 at event-location
        send "you killed %player%" to shooter
        send "you got killed by %shooter%" to player

try smth like that
 
Not sure if the fake explosion event does damage
Code:
on projectile hit:
    if event-projectile is an egg:
        create a safe explosion of force 2 at event-location
        send "you killed %player%" to shooter
        send "you got killed by %shooter%" to player

try smth like that
Thanks! I'll try this tomorrow!
 
If it doesn't work just post it here, if it does please mark this thread as solved
Yeah
[doublepost=1621788894,1621712573][/doublepost]
Not sure if the fake explosion event does damage
Code:
on projectile hit:
    if event-projectile is an egg:
        create a safe explosion of force 2 at event-location
        send "you killed %player%" to shooter
        send "you got killed by %shooter%" to player

try smth like that

Didn't work. It gives me error:
upload_2021-5-23_19-54-32.png


what does this mean?
 
Code:
on damage of player:
    if projectile = egg:
        kill the victim
        if victim is not shooter:
            send "you got killed by %attacker%" to victim
            send "you killed %victim%" to attacker
         else:
             send "you killed urself, great job"

There might be an/some error/s because of whitespace/space
 
Code:
on damage of player:
    if projectile = egg:
        kill the victim
        if victim is not shooter:
            send "you got killed by %attacker%" to victim
            send "you killed %victim%" to attacker
         else:
             send "you killed urself, great job"

There might be an/some error/s because of whitespace/space

Thanks for quick reply! Now it says this
upload_2021-5-23_20-39-55.png
 
Status
Not open for further replies.