nearby enttites

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

player2709

Member
Aug 1, 2017
10
0
0
22
Skript Version: 2.1.2
Minecraft Version: Spigot 1.8.8


Full Code:
code_language.skript:
command /noent:
 permission: sk.noent.set
 trigger:
  set {loc} to location of player
 
every 3 seconds: 
 loop the nearby entities in radius 15 around location {loc}:
  kill loop-entity

Error:
code_language.skript:
There's no location in a periodical event (ent.sk, line 8: loop the nearby entities in radius 15 around location {loc}:')

Addons:
Skellet (Version 1.9.6b)
 
You can try:
code_language.skript:
command /noent:
    permission: sk.noent.set
    trigger:
        set {loc} to location of player
 
every 3 seconds:
    if {loc} is set:
        loop the nearby entities in radius 15 around location {loc}:
             kill loop-entity
 
You can try:
code_language.skript:
command /noent:
    permission: sk.noent.set
    trigger:
        set {loc} to location of player
 
every 3 seconds:
    if {loc} is set:
        loop the nearby entities in radius 15 around location {loc}:
             kill loop-entity

When I try this, I get the same errror from the beginning of this thread.
 
code_language.skript:
every 3 seconds:
 loop nearby entities in radius 15 around {loc}:
  kill loop-entity
 
Status
Not open for further replies.