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 loop players in radius excluding the player that initiated the script?

Discussion in 'Skript' started by frambo, Aug 8, 2021.

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

    frambo Member

    Joined:
    Aug 8, 2021
    Messages:
    2
    Likes Received:
    0
    Is it possible to exclude the player that initiated the script for the command "loop players in radius _ around player"? So that every player in the radius besides the player that initiated the script has a zombie spawned at them for example.
     
  2. Best Answer:
    Post #2 by xdh, Aug 8, 2021
  3. xdh

    xdh Member

    Joined:
    Apr 15, 2020
    Messages:
    46
    Likes Received:
    2
    Code (Text):
    1. command /test:
    2.     trigger:
    3.         loop all players in radius 5 around player:
    4.             if loop-player's name isn't "%player%":
    5.                 spawn zombie at loop-player's location
    6.                 set displayname of the last spawned zombie to "&cTesting"
    there might be better ways of doing this, but this what I usually use.
     
  4. frambo

    frambo Member

    Joined:
    Aug 8, 2021
    Messages:
    2
    Likes Received:
    0
    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...