#How can I select one entity out of all looped

1 messages · Page 1 of 1 (latest)

marble sleet
#

This is a test skript:

  set {_spot} to player's location
  loop all pigs:
    if loop-entity's location is within 10 blocks of {_spot}:
      ... here is where i only want 1 pig to be selected
      kill loop-entity```
pliant sand
#

set {_selected} to loop-entity

#

then I suggest you stop loop

#

also you can just loop all pigs in radius 10 of {_spot}:

lavish parcel
#

if you dont mind it being determenistic, just check dist < 10

marble sleet