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 Damage Entity in a radius of 5

Discussion in 'Skript' started by Melody, Mar 7, 2021.

Thread Status:
Not open for further replies.
  1. Melody

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    Idk how I can do it I tried so many stuff but I cant find it if you know please let me know aswell
    --- Double Post Merged, Mar 7, 2021, Original Post Date: Mar 7, 2021 ---
    Ok I found a solution to thius

    loop all entities in radius 10 around the player:
    damage loop-entity by 10

    but I cant make it so it does not affect players
     
  2. Best Answer:
    Post #2 by Goose, Mar 7, 2021
  3. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    422
    Likes Received:
    30
    Code (Text):
    1. damage all entities in radius 10 around player where [input is not a player] by 10
    This basically translates to:
    Code (Text):
    1. loop all entities in radius 10 around player:
    2.     if loop-entity isn't a player:
    3.         damage loop-entity by 10
     
Thread Status:
Not open for further replies.

Share This Page

Loading...