1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved make a player damage someone

Discussion in 'Skript' started by GewoonQuint, Oct 15, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. GewoonQuint

    GewoonQuint Member

    Joined:
    Oct 15, 2017
    Messages:
    15
    Likes Received:
    0
    Hey,

    So I'm trying to make a little duel plugin with wands and stuff. I want to detect when a player dies, which isn't that difficult with
    Code (Skript):
    1. on death of player:
    2.     #event
    I want to damage any players that are in a 3 block radius of the targeted block of the executor.
    Code (Skript):
    1.         loop all entities in radius 3 around location of targeted block of executor:
    2.             if loop-entities isn't "%player%":
    3.                 damage loop-entities by 4 hearts
    Here's the catch:
    When you damage a player with that code, it doesn't count as if the player has hit the victim.

    Hope this makes any sense :emoji_slight_smile:
     
  2. Best Answer:
    Post #2 by Donut, Oct 15, 2017
  3. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    Code (Skript):
    1. make player damage loop-entity by 4
     
  4. GewoonQuint

    GewoonQuint Member

    Joined:
    Oct 15, 2017
    Messages:
    15
    Likes Received:
    0
    I don't know how I didn't figure that out by myself, thanks a lot!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...