Solved loop players in radius excluding the player that initiated the script?

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

frambo

Member
Aug 8, 2021
2
0
1
18
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.
 
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.
Code:
command /test:
    trigger:
        loop all players in radius 5 around player:
            if loop-player's name isn't "%player%":
                spawn zombie at loop-player's location
                set displayname of the last spawned zombie to "&cTesting"
there might be better ways of doing this, but this what I usually use.
 
Code:
command /test:
    trigger:
        loop all players in radius 5 around player:
            if loop-player's name isn't "%player%":
                spawn zombie at loop-player's location
                set displayname of the last spawned zombie to "&cTesting"
there might be better ways of doing this, but this what I usually use.
Thanks!
 
Status
Not open for further replies.